Developer forum

Forum » Templates » -

Reply
-

Replies

 
Nicolai Høeg Pedersen
Reply
Because that is how it was coded...

In /html/js/refreshpage.js in method addProductX, you will find the code.

Change it to this:
function addProductX(productUrl, delay) {
 location = productUrl;
}

That will work just fine.
 
Reply
Our programmer writes:

That doesn't make much sense to me...

- The file refreshpage.js is loaded into the main page (in the main window).
- The file contains a function addProductX that does one thing, sets the SRC of the iframe on the page to the url provided with a delay (or none if 0 is provided).

the url provided is that of a "buy" button from the item list.

The item list resides inside the iframe and under each "buy" button is a call to parent.addProductX('/Default.aspx?blablabla', 0).

So, setting "Location = productUrl;" inside addProductX will load the item list in the main window, which is not what we are trying to achieve.

What we are trying to achieve is to add the product to the cart and then refresh the main page, since this seems to be the only way to update the cart because it resides on the main page while the item list resides inside an iframe on the main page. 
 
Nicolai Høeg Pedersen
Reply
I can have someone do it for you - its pretty straght forward...

 

You must be logged in to post in the forum