close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Continue Shopping Button redirecting

Thread began 3/02/2011 10:37 am by zazi.slo366214 | Last modified 3/04/2011 1:05 pm by zazi.slo366214 | 3282 views | 12 replies |

zazi.slo366214

Continue Shopping Button redirecting

I have two problems with ecart witch I can not solve myself, so please could someone help me.

1.
My products and cart are on the same page, but different tabs. I have four tabs, three for different product categories and on the last one is cart. Each tab has an ID.

I would like to achive, when customer clicks on Continue Shopping button, that is redirect to tab from which he came (the same action if he would click on browsers back button).

2.
How could I format numbers in quantity field like this 1.000, 1.000.000 etc.?
Now they are just plain numbers without formating (100000).

Thank you.

Sign in to reply to this post

Jason ByrnesWebAssist

change the continue shopping button to a standard button and add a javascript history() -1 function to the onClick event:

<input type="button" name="WA_Store_Cart_Continue_100" id="WA_Store_Cart_Continue_100" value="Continue Shopping" alt="Continue Shopping" onClick="javascript: history.go(-1)"/>



the code that outputs the quantity will look like:

php:
<?php echo $<your cart name>->DisplayInfo("Quantity"); ?>




where <your cart name> is the name of your eCart object.


you can use the php number_format function to change the format of the quantity:
function.number-format.php

for example:

php:
<?php echo number_format($<your cart name>->DisplayInfo("Quantity"),0,",","."); ?>




will format the number to use 0 decimal places. The "," will be used as the decimal separator and the "." will be used for the thousands separator

Sign in to reply to this post

zazi.slo366214

Thank you for your reply.

Your code for number formating works fine.

About continue shopping button I have to say, that your solution also works - after clicking the button I am redirected to tab from which I came.

But now another problem occurred (just in Firefox, not IE, another browsers dont know):
When I for example add in cart some product, click continue shopping button so I am returned to starting tab (so far everything ok), than click directly on Cart tab - in this case Firefox shows my cart as empty. It shows my added product just after I click browsers refresh button.

I would appreciate your help also in this matter.

Sign in to reply to this post

Jason ByrnesWebAssist

please send a link where i can see the problem and a copy of your page.

Sign in to reply to this post

zazi.slo366214

I work on my page localy. But I would send you a copy if you tell me where, how and should I zip it.

Sign in to reply to this post

Jason ByrnesWebAssist

add the page to a zip archive and attach it to your post here in the forum.

Sign in to reply to this post

zazi.slo366214

My page in attachment. I put all java scripts in separate folder.

Attached Files
js.zip
mypage.zip
Sign in to reply to this post

Jason ByrnesWebAssist

try changing:

php:
<?php

//WA eCart Show If Start
if (!$eCartSlo->IsEmpty())     {
?>




to:

php:
<?php

$eCartSlo
->GetContent();
?>
<?php
//WA eCart Show If Start
if (!$eCartSlo->IsEmpty())     {
?>
Sign in to reply to this post

zazi.slo366214

So sorry, but changing the php code as described does not change behavior. When I click cart tab directly, is empty, till I refresh the page in browser.

Is it possible to achive somehow, when someone click tab with cart, that page refreshes and stays on same tab (as I would manually refresh the page in browser)?

Why firefox acts so different than IE?

Please donĀ“t give up. Thank you.

Sign in to reply to this post

Jason ByrnesWebAssist

I cant really give much more advice without seeing the issue occur in a browser.

Sign in to reply to this post
loading

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...