close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Doesn't work within shopping cart

Thread began 11/26/2012 7:45 pm by sales189614 | Last modified 11/27/2012 5:19 pm by sales189614 | 1236 views | 6 replies |

sales189614

Doesn't work within shopping cart

I need some help figuring out how to get the gallery to work within cube cart. Cube cart is installed in the main directory and for the gallery for example, it calls for this:

<?php
$pg_id = '3';
$pg_theme = 'light';
include('/home/arnswood/public_html/gallery/galleries/ribbon_fullsize_lightbox/index.php');
?>

and it doesn't display, so I have tried this:

<?php
$pg_id = '3';
$pg_theme = 'light';
include('../home/arnswood/public_html/gallery/galleries/ribbon_fullsize_lightbox/index.php');
?>

and this:

<?php
$pg_id = '3';
$pg_theme = 'light';
include('../../home/arnswood/public_html/gallery/galleries/ribbon_fullsize_lightbox/index.php');
?>

and neither of those worked, which I didn't think they would since it's in the main directory.

Does anyone know if there's a reason why the gallery won't work in a shopping cart software?

I'm gonna post it in their forum as well (cause I just know that someone is going to tell me to ask the cube cart people).

If you want to look at the site, it's arnswoodshop.com, scroll down to the bottom of the page and click on the gallery or featured carver links. They both have galleries on the page, that aren't showing of course.

Thanks again.

Any help would be greatly appreciated. Thanks so much!

Sign in to reply to this post

Jason ByrnesWebAssist

leave the code unchanged.

when i look at the source code on your page, the php tags are not correct. In the source code, the php tags show as:
<!--?php

and
?-->



another issue i see is that you have links to load jquery on the page:
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js"></script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.7/jquery-ui.min.js"></script>


the gallery will also load jquery, those links will cause a conflict which will cause the gallery to fail.

Sign in to reply to this post

sales189614

Thanks Jason. I copied the php coding directly from the gallery add to site link, so the gallery is giving me the wrong code, which is I remember right, has happened before. I am gonna bet it's probably the jquery links. I will go check that now. I bet that's it since it just doesn't show the gallery but doesn't give me an error.

Sign in to reply to this post

sales189614

Hi Jason. I took the jquery links out which were generated by the shopping cart. That didn't help. I then fixed the php tag issue. Which is weird, cube cart must have done something to it after I added it, but only to the gallery page, not the carver page. But anyways, that didn't fix it either.

Can you look at it again, and see if you see anything else. :-( Thanks so much.

Sign in to reply to this post

sales189614

and, if I put the same gallery on a page that is not generated by the cart (in the cart you add pages by clicking a documents link and can either use a wsyiwyg editor or the source code and I enter just the content source code, then it generates a page and creates the link to it) it works. See test.php

So there's gotta be something that the cart is generating that is conflicting, but I can't se what it might be. Can ou take a look at the source code again one more time and see if you see anything that could be conflicting with it?

I appreciate it.

Sign in to reply to this post

Jason ByrnesWebAssist

you may have to add the gallery to the page as an iFrame instead of adding the php code.


see the "How to display a PowerGallery in an iFrame" tutorial in the PHP Web Apps section of our you tube channel:

webassist

Sign in to reply to this post

sales189614

I will certainly try that. Thanks for the suggestion.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...