Announcement

Collapse
No announcement yet.

Two Different Shopping Cart Layouts on one page

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

    Two Different Shopping Cart Layouts on one page

    I am trying to get two different shopping cart templates on one page. I have created another shopping cart layout in Design | Library so I have two layouts - ShoppingCart1 and ShoppingCart2. These two layouts are different.

    If I use only ShoppingCart1 and upload it works, and if I use only ShoppingCart2 and upload it works. The problem is when I add ShoppingCart1 and ShoppingCart2 on the same page. When I do this it looks fine in Actinic's preview pane. They are both different and look as expected. However when I upload the site, it seems to just use ShoppingCart1 twice. Is there any way around this?

    #2
    I think the scripts will get confused. Why do you want two checkout layouts?

    Comment


      #3
      I have one usual shopping cart for the customer to see when placing an order. I am then using the second shopping cart to build a list of product references and prices which will be hidden and used for tracking/passing data.

      I know I could use JavaScript instead, but I know JavaScript is not 100% reliable; some people have JavaScript disabled for example. I just need a way to create a list of product references and prices without JavaScript and this second shopping cart seemed like a solution. I am very close to getting it working. I have created the list of product references and prices in the second shopping cart. I just can't get it to have both shopping carts on one page at the same time.

      Comment


        #4
        Without seeing the HTML generated it's tough to call, however I'd place bets on there being only 1 form tag, therefore when both checkout layouts are displayed it duplicates the form fields with the checkout scripts only expecting one lot.
        This would also explain why it works when there is only one layout.
        You;d most likely need to have 2 separate forms on the page to make this work.
        Fergus Weir - teclan ltd
        Ecommerce Digital Marketing

        SellerDeck Responsive Web Design

        SellerDeck Hosting
        SellerDeck Digital Marketing

        Comment

        Working...
        X