close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Powerstore Advanced options not working

Thread began 9/02/2010 11:17 am by johnb | Last modified 9/16/2010 7:20 pm by Dani Chankhour | 1152 views | 5 replies |

johnb

Powerstore Advanced options not working

I have successfully gotten the power gallery to work and show up in my product detail page. However this product also has an advanced option set with an alternate size. When the other size is selected in the store the gallery disappears. In addition if you hit the back button to return to the original size the gallery does not re-appear as it did when the page originally loaded.

You can see here what's up:

Products_Detail.php?ProductID=886

Change the product to 5ft from 7ft and it will not load in the page.

Use back button to go back to 7ft and it will now be gone. If you refresh the page it will re-appear.

Also, to confirm, I have entered the same code in both size options of the product in the long description for each.

Help please?

Sign in to reply to this post

Dani Chankhour

I have confirmed that this is an issue with the PowerGallery integration into PowerStore. I have logged the bug in our bug base and i will update you on the fix once we have a fix to this issue.

Sorry for the inconvenience.

Sign in to reply to this post

johnb

Any Idea how long this will take? I really need to get this working for my client.

Sign in to reply to this post

Dani Chankhour

Hi, sorry for the delay in response.

Please follow these steps to get the gallery working under Advanced Options:

1. on the Products_Detail.php, find this line of code:

document.getElementById("ProductLongDesc").innerHTML = getFromRSDump(theRet,"ProductLongDesc");

and Under it add these lines of code:

// trigger any returned JavaScript
var longDesc = document.getElementById("ProductLongDesc");
var scripts = longDesc.getElementsByTagName('SCRIPT');
for(var s=0; s<scripts.length; s++){
if(!scripts[s].src){
try{
eval(scripts[s].innerHTML);
}
catch(e){
// Handle errors here?
}
}
}


2. And Then you will need to update the Galleries index page file. For example if you are using the ribbon lightbox for powerstore gallery, then under the ribbon_lightbox_powerstore folder open the index page and add these lines of code:

<script type="text/javascript">
Slimbox.scanPage();
$$('.pg-rlp').each(function(wrapper) {
if(!wrapper.hasClass('pg-init')) new pgRibbonLightbox(wrapper);
wrapper.addClass('pg-init');
});
</script>

above this line of code:

<?php if(!$included) { ?>


This should get the gallery working when changing options.

Please post back if you are still having an issue.

Sign in to reply to this post

johnb

Thanks for finally getting back to me on this. I also apologize in taking a couple days to try it out.

I did exactly as you said and it still isn't working. see here: Products_Detail.php?ProductID=886

p.s. Can you tell me what domain the forum notifications come from? I think they are getting discarded by my spam filter because I never know when you guys reply to a post. I have to come look manually. I'd like to try whitelisting the domain to see if that helps.

Sign in to reply to this post

Dani Chankhour

The above solution should have worked, but i found a different solution that require no changes to the powergallery files and it should be much easier to implement.

Please remove the changes that i suggested to the power gallery files. and replace the products_detail.php and products_detail_lookup.php file with attached files that i have sent. Make sure to create a backup of your current files.

I'm not sure where the forum notifications will come from, but i would assume it should be a webassist domain. Can't you mark the emails as not spam in your spam filter so they come directly to your Inbox the next time.

Attached Files
Archive.zip
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...