I’ve worked out from threads on this and other forums how to have Mal’s cart appear in an iFrame, so that the user doesn’t appear to leave the site when purchasing. I’ve also worked out how to customise the code of e-buy buttons to send the customer to the iFrame page.
However, Mal’s “continue shopping” button doesn’t appear by default within the iFrame, even though it appears in my external cart page - I’ve noticed this with other sites too:
Hi,
The cecemarie.com site is great and was, I believe, done in
RapidWeaver where the designer added most of the functionality by hand
coding the pages as markup. Looking at the code I can see that the
site uses a hidden form field in each of the buy forms called
‘nocart’ (). This forces the Mals
cart to instantly return the buyer to the continue shopping page
rather than show them the cart contents. The return page is set to
cart.html where an iframe displays the cart in a page on the main cecemarie.com site. Here’s the return code;
The maddiandme.com site, on the other hand, simply loads the Mals cart
into an iFrame in the page. The ‘continue shopping’ button gets
displayed because the form has a return address set up and the nocart
hidden field isn’t automatically pushing the user back to the maddiandme.com site.
Unfortunately neither my Mals actions or the Softpress eBuy actions
currently support the nocart field through the action interface
although you can easily add these manually should you wish.
I hope this helps.
Regards,
Tim.
On 5 Oct 2009, at 09:47, eidetic wrote:
I’ve worked out from threads on this and other forums how to have
Mal’s cart appear in an iFrame, so that the user doesn’t appear to
leave the site when purchasing. I’ve also worked out how to
customise the code of e-buy buttons to send the customer to the
iFrame page.
However, Mal’s “continue shopping” button doesn’t appear by default
within the iFrame, even though it appears in my external cart page -
I’ve noticed this with other sites too:
The site adds the product to the Mals cart (which is displayed in an
iframe in the main maddiandme site) and when the user clicks the
‘continue shopping’ button the cart returns the user to the specified
return address but not within the current iframe but targeting the top
window (‘_top’).
Regards,
Tim.
On 5 Oct 2009, at 10:09, eidetic wrote:
So how does the maddiandme site achieve it’s iFrame cart, I’m not
sure I understand.
No not a dumb question at all. It looks like the buy button passes all
of the details to a PHP page (http://www.maddiandme.com/go/order.php)
which in turn loads the Mals cart with the option in the iframe. I
imagine that this is all running using a content management system but
without looking deeper I can’t really be sure.
You can easily do the same sort of thing yourself using an iframe on
the same page as the buy link (or button) but passing this information
to another page to load into an iframe will take a it of php or script
messing.
Thanks,
Tim.
On 5 Oct 2009, at 10:28, eidetic wrote:
Sorry to be dumb, but how does the “buy” button on that site send
the user to the iFrame cart in the first place?
To summarise then, am I correct in thinking it’s not possible to have a continue shopping button visible within the cart iFrame if you use the hidden form field “nocart” method favoured by the cecemarie site?
If that is the case, maybe I’ll just live without it for the time being.
Feature request!
How easy would it be to add a nocart option to the Mal’s actions?
Another great feature would be a javascript action enabling an add to cart without leaving the product page, perhaps with a little popup confirmation that an item has been added.
Can any of this be done with an action, theoretically?
To summarise then, am I correct in thinking it’s not possible to
have a continue shopping button visible within the cart iFrame if
you use the hidden form field “nocart” method favoured by the
cecemarie site?
Not as far as I can see.
If that is the case, maybe I’ll just live without it for the time
being.
Feature request!
How easy would it be to add a nocart option to the Mal’s actions?
Another great feature would be a javascript action enabling an add
to cart without leaving the product page, perhaps with a little
popup confirmation that an item has been added.
Can any of this be done with an action, theoretically?
Yes certainly. Mals has a number of extra options like the nocart
field that all add extra bits and pieces to the shopping experience.
The issue, from an action writer’s perpective, is to offer that power
without swamping the Freeway user with a raft of confusing options
that they may never need.
I created a custom version of the action a while ago for a user who
wanted to add items to the cart without leaving the site. It
essentially did what nocart does but before nocart was available.
Regards,
Tim.