Announcement

Collapse
No announcement yet.

Adding from Anywhere on the Internet Question

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Adding from Anywhere on the Internet Question

    I have returned!

    Still pluggin along with the site, pretty much there now, except the text. anyway!

    I have set up a samples page as the client requested - http://sbs.binamics.co.uk/acatalog/samples.html

    It performs exactly as it should, it is however the most unusable piece of junk ever!

    SO the cunning plan is to create a PHP "overlay" which lets the user choose their samples using checkboxes. The PHP will then create the "add to basket" url dynamically the user can then click it and add to basket! hooray!

    The test PHP page is here

    All i need to know is the format for the URL i will create i have looked it up in the advanced user guide but it does not go into much detail.

    The actinic samples page is structured like so

    Samples Product
    Samples 1 component
    samples 1 dropdown

    Samples 2 component
    samples 2 dropdown

    Samples 3 component
    samples 3 dropdown

    Samples 4 component
    samples 4 dropdown

    Samples 5 component
    samples 5 dropdown

    cheers in advance guys! Andy

    #2
    There are plenty of posts on creating such a URL on the Forum.

    Also it should be possible to do this without a customised add to cart url.

    Make a product that uses only optional components for all these choices and a template that lays them out in rows (to get the matrix of checkboxes).

    At the bottom of that template add some JavaScript that loops through the form looking for all checkbox fields containing your product reference, and dynamically add an onclick handler for each.

    Another simple way is to add the onclick into Act_VariantCheckBox.html and have a dummy handler on every page (via Act_Primary.html in the HEAD) except the special item where you redefine the handler in it's product template.
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment

    Working...
    X