[Pro] Mal's E-commerce continue shopping link

Help! I’ve been working on this new site for months, and just took it “live.” It’s been residing in a sub-folder, so I’ve only just discovered this problem. The site is put together using PHP, and when I link back from the shopping cart, only the beginning and end of the return is being given. So if I have a page like www.ccaine.com/shopping/index.php?content=item01.html, it uses www.ccaine.com/shopping/item01.html as the “continue shopping” link.
With the previous site, I was using an iframe, and simply put in a “not in frame set redirect” action, which took care of a similar issue. Any thoughts on how I can get Freeway to include the complete address to Mal’s site?

http://www.christiancaine.com/fashcont/shopfs09.php?item=i8292


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I can see the problem from a structural point of view. The “return” part of the post is set in the item’s sub-page, so it doesn’t include the main page’s URL. Is there a way to make the “continue shopping” button to use this: javascript:history.go(-1)%3B as the return link? Can the E-buy form be modified to take input for the “return” portion of the form?


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Okay, the Javascript idea won’t work because if the client deletes the item, the previous page would be the address of the cart with the item still in it. So, is there a way to create an input field to manually set the “return” in the shopping form post field?


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi David,
I can see from your page that you are pulling the page together in PHP from a set of product sub pages and each of these is loaded depending on the ‘item’ query string in the URL. The Mals cart is returning you to the sub page rather than the parent page for all of the rings simply because the Freeway Shop Actions know no better. You’ll need to adjust the return link in the child pages so that it points to the parent page with the correct item ID in the query string.

For example;

<input type="hidden" name="return" value="www.christiancaine.com/fashcont/i8300.html">

should be;

<input type="hidden" name="return" value="www.christiancaine.com/fashcont/shopfs09.php?item=i8300">

You could also do this with an .htaccess redirect so anytime a sub page is called the parent page is automatically loaded although that would be a bit trickier to work out.
Regards,
Tim.


Experienced Freeway designer for hire - http://www.freewayactions.com


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Tim,

Yes, I did that last night, opening the page up in TextEdit and changing the link that way, and it worked fine, of course. Naturally, that only works until the site is republished, then all those edits would get overwritten. That’s pretty much where I was at the top of this thread. I also bought the Mal’s E-Commerce Suite which has a field for the return value, but which overall is not quite as elegant in application as the actions that come with Freeway. And no thumbnails in the cart.
What I was hoping for was access to the original action so that I could edit it to enable me to enter the correct, complete return value into each child page. Or, if someone could make that tweak to the action, so much the better. (If I were a code writer, I guess I wouldn’t be using Freeway.)
My other option is to substitute iframes for the markup items and use a “not in frame set redirect” action for each child page.
Anyway, thanks for the tip.

David


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi David,
I’m not sure why you can’t just add address in the format;

www.christiancaine.com/fashcont/shopfs09.php?item=i8300

into the return address field of the Mals E-Commerse Actions?

If you omit a value the Action will write a URL back to the page the product is on (the partial) but this is overwritten if you supply your own return address.
Feel free to contact me directly (see the link in the footer) if you’d rather take this discussion offline.
Regards,
Tim.

On 13 Jun 2013, at 14:02, David wrote:

What I was hoping for was access to the original action so that I could edit it to enable me to enter the correct, complete return value into each child page. Or, if someone could make that tweak to the action, so much the better. (If I were a code writer, I guess I wouldn’t be using Freeway.)


FreewayActions.com - Freeware and commercial Actions for Freeway Express & Pro - http://www.freewayactions.com


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options