close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Url image changes when adding to Cart

Thread began 4/28/2016 4:47 am by Joao | Last modified 6/30/2016 10:29 am by Ray Borduin | 2271 views | 17 replies |

Joao

Url image changes when adding to Cart

Hello,

I have a client to which i am advertising deals the images are from his server in my products page the image shows as expected as soon as i add the item to the cart the image url gets changed and it does not show.

image url in products page: http://media.continente.pt/Sonae.eGlobal.Presentation.Web.Media/media.axd?resourceSearchType=2&resource=ProductId=5080254(eCsf$RetekProductCatalog$MegastoreContinenteOnline$Continente)&siteId=1&channelId=1&width=150&height=150&defaultOptions=1

image url in Cart:http://media.continente.pt/Sonae.eGlobal.Presentation.Web.Media/media.axd?resourceSearchType=2&resource=ProductId=5080254(eCsf)&siteId=1&channelId=1&width=150&height=150&defaultOptions=1

this part of the url becomes chopped (eCsf$RetekProductCatalog$MegastoreContinenteOnline$Continente) to this (eCsf)

Any idea why?

Thanks

Sign in to reply to this post

Ray BorduinWebAssist

$ is used to identify variable names in PHP, so at some point it is thinking you are trying to put a variable in and that is why it is cleared out. I'd need to debug to figure out where and why and find a solution.

Sign in to reply to this post
Did this help? Tips are appreciated...

Joao

Ok thanks i will be waiting.

Sign in to reply to this post

Ray BorduinWebAssist

I'll need the url and steps to reproduce the problem and FTP access to debug it.

Sign in to reply to this post
Did this help? Tips are appreciated...

Joao

OK credentials as follows

Sign in to reply to this post

Joao

Sorry forgot the steps. Add the first item from the list in this url http://www.promocaototal.pt/continente.php by clicking in the circle button on the right of the page, than you can see the cart in http://www.promocaototal.pt/listacompras.php

cheers

Sign in to reply to this post

Joao

Good morning Ray,

I forgot to aks can i update the files in the server while you debugg or leave it untill you finish?
Another question is i am struggling to set the cookies using the eCart wizzard, is there a good tutorial for that? Do i need extra PHP code after setting up the wizzard?

Sign in to reply to this post

Ray BorduinWebAssist

Your cookie information is wrong. It should be:


function SetCookieInfo($theCookieString) {
$numDays = 99999;
$theDomain = ".promocaototal.pt";
$thePath = "/";
$cookSec = false;
if ($numDays == "") $numDays="0";
$theDate = strtotime("+".$numDays." Days");
setcookie($this->CartName."_Items", $theCookieString, $theDate, $thePath, $theDomain, $cookSec);
}

Sign in to reply to this post
Did this help? Tips are appreciated...

Joao

Morning Ray,

After i have changed the session to cookie a few things have changed. The good thing is the image of the item added to cart is now showing, so it stopped changing the url, on the other side in the cart the continue shopping button and update button do not work and when i close the browser and reopen the cart is empty... so i the cookie is not set...
Can you please have a look at the cart file http://www.promocaototal.pt/listacompras.php and use http://www.promocaototal.pt/continente.php to add items to cart.

Many thanks

Joao Silva

Sign in to reply to this post

Ray BorduinWebAssist

You had it set to save for 99999 days and cookies wouldn't do that... I set it to 365 days and it seems to work.

Sign in to reply to this post
Did this help? Tips are appreciated...
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...