close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

ecart changed

Thread began 2/11/2013 3:14 pm by barkmail | Last modified 7/03/2013 5:04 pm by barkmail | 593 views | 10 replies |

barkmail

ecart changed

Hello

in some pages I had developed, the ecart function has changed. The web pages now longer direct properly when selecting the add to cart button.

In the Dreamweaver server behaviors, I no longer have the "add to ecart" selection available. Rather, I have a "dynamic attribute" string in its' place.

What happened and is there an easy way to bring it all back to "add to ecart"?

I've included one of the files for your review...

Sign in to reply to this post

Jason ByrnesWebAssist

the action of the add to cart button forms has become corrupted.

instead of:

php:
 action="<?php echo $_SERVER["../../newsite/php/PHP_SELF"]; ?><?php echo (isset($_SERVER["QUERY_STRING"]) && $_SERVER["QUERY_STRING"] != "")?"?".$_SERVER["QUERY_STRING"]:""?>"



the code should be:

php:
 action="<?php echo $_SERVER["PHP_SELF"]; ?><?php echo (isset($_SERVER["QUERY_STRING"]) && $_SERVER["QUERY_STRING"] != "")?"?".$_SERVER["QUERY_STRING"]:""?>"
Sign in to reply to this post

barkmail

Hi Jason

Well, this seems to happen randomly...

When an end user accesses the cart button on a published web page, that page redirects to itself rather than to the ecart page. The end user cannot purchase the item.

When investigating within Dreamweaver, all the ecart "add to cart buttons" have been replaced with a "dynamic attribute" string.

Do you know what causes this?
Do you know what to look for in the code to repair? (Often re-doing all the ecart buttons is a big time suck)

thank you for your time...

Sign in to reply to this post

Jason ByrnesWebAssist

No, i don't know what the cause is.

what to look for and the fix is in my previous reply

Sign in to reply to this post

barkmail

Part 2

In addition to my last post this morning...
I am attaching a file that I found within Dreamweaver that has "lost" the "add to cart button" under the server behaviors tab.

On many other files I show both the "add to ecart button" AND the "dynamic attribute" string

So it seems that the "add to ecart" button sometimes "disappears".

In the file I am attaching there is alot of work into all those ecart button formations and I would appreciate an easy way to repair and restore those buttons.

thanks

Sign in to reply to this post

Jason ByrnesWebAssist

send a copy of the WA_eCart/Nitrodog_PHP.php so i can recreate the cart please.

Sign in to reply to this post

barkmail

Part 3

In the file I sent you in part 2, I see the e_cart within the code, but it is not showing up in server behaviors tab as it usually does.
That web page actually functions fine when published.

I did have a web page this AM that was not functioning and the e_cart was not showing in the server behaviors panel. I don't know if it was embedded within the code or not as i re-did the buttons on that page.

Sign in to reply to this post

barkmail

Here's the cart file you requested.

Please let me know what to do with it once it has been worked on OK?

Sign in to reply to this post

Jason ByrnesWebAssist

on your page, do a find and replace to hcange:

php:
$_SERVER["../PHP_SELF"]




to:

php:
$_SERVER["PHP_SELF"]




and change:

php:
$ATC_RedirectAfter = "../../cart.php";

  $ATC_RedirectAfter = "../../cart.php";


to:

php:
$ATC_RedirectAfter = "../../cart.php";

  $ATC_RedirectIfIn = "../../cart.php";
Sign in to reply to this post

barkmail

Worked perfectly. thank you.

What caused this so that it doesn't happen again? This has been the fifth time it has happened. Any ideas?

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