Tips and Tricks HQ Forum

Support Forum for Tips and Tricks HQ Products

Register or log in - lost password? (Having an issue with the forum login?)

Search the Forum

Tips and Tricks HQ Forum » Simple PayPal Shopping Cart » Simple Shopping Cart Tweaks

Show Cart function in popup window or new page?

(12 posts) (3 voices)
  • Started 1 year ago by PDidee
  • Latest reply from amin007
  • Possible Solutions (Related Topics):
    1. Lightbox Ultimate - Popup shows multiple instances of the same external webpage
    2. Full store page but restricting Add To Cart functionality to members only
    3. Strangeness on page - some Add to Cart & Terms box not showing up
    4. Coupon code area not showing up in the cart on my page
    5. How to open "Terms and Conditions" page link from shopping cart in same window

Tags:

  • add to cart
  • new window
  • replace text in shopping cart in sidebar
  • shopping cart
12Next »
  1. PDidee
    Member

    Is it possible to have the "[show_wp_shopping_cart]" function in a popup window or open in a separate page?

    Posted 1 year ago #
  2. amin007
    Key Master

    You can place the shopping cart on a checkout page then when someone clicks the "Add to Cart" button it opens the checkout page on a new window. Is that something you are after?

    Posted 1 year ago #
  3. PDidee
    Member

    Exactly. How do I do that?

    Posted 1 year ago #
  4. amin007
    Key Master

    Open the "wp_shopping_cart.php" file and search for the following line:

    $replacement = '<object><form method="post"  action="" style="display:inline" onsubmit="return ReadForm(this, true);">';

    once you find it replace with the following:

    $replacement = '<object><form method="post"  action="" target="_blank" style="display:inline" onsubmit="return ReadForm(this, true);">';

    That should make it so when the add to cart button is clicked it opens a new window.

    Posted 1 year ago #
  5. PDidee
    Member

    Hmmm. not quite what I was after. See for most of the site I use the shopping cart widget and sidebar widget. Only one section of the site features a product with and the pages are single columns (NO SIDEBAR) meaning that when add to cart is clicked there is NO visible reference that an item was placed in a cart unless I put the code "[show_wp_shopping_cart]" somewhere on the page which looks ugly. I only want the shopping cart to show up in a popup window on these pages since there isn't a sidebar on these pages with the widget. Also this function seems to open a whole new site page, not just the shopping cart.

    Thanks
    P

    Posted 1 year ago #
  6. amin007
    Key Master

    I thought you wanted to open a new widnow then redirect them to the checkout page automatically after the customer clicks the "Add to Cart" button.

    I think what you are after is a JQuery lightbox type popup of the shopping cart. The simple shopping cart do not have that option and it will require a bit of coding to add it in as you will have to use one of the JQuery libraries.

    Posted 1 year ago #
  7. hdeutch
    Member

    I am trying to get my cart to show on a new page. I tried to follow advice you gave PDidee a couple of months ago:

    “Open the "wp_shopping_cart.php" file and search for the following line:
    $replacement = '<object><form method="post" action="" style="display:inline" onsubmit="return ReadForm(this, true);">';
    once you find it replace with the following:
    $replacement = '<object><form method="post" action="" target="_blank" style="display:inline" onsubmit="return ReadForm(this, true);">';
    That should make it so when the add to cart button is clicked it opens a new window.

    But I am having some trouble.

    I found the "wp_shopping_cart.php" file in WP Simple Paypal Shopping cart and made the changes.

    I created a new page entitled “Shopping Cart” and I inserted [wp_eStore_cart_fancy1].

    Then I clicked the “Add to Cart” button on my product page. I was not taken to the shopping cart page. The product page merely reopened.

    However, when I opened the shopping cart page, my order was shown.

    The problem is getting the shopping cart page to open when I place an order.

    Please advise.

    Posted 1 year ago #
  8. amin007
    Key Master

    Just for clarification. This tweak was for the simple shopping cart not the WP eStore plugin.

    By looking at your shortcode I get the feeling that you are using the WP eStore plugin. So it looks like you are following the wrong instruction.

    Can you please tell me which plugin you are using so I can guide you?

    Posted 1 year ago #
  9. hdeutch
    Member

    I am trying to get my cart to show on a new page. I tried to follow advice you gave PDidee a couple of months ago:

    “Open the "wp_shopping_cart.php" file and search for the following line:
    $replacement = '<object><form method="post" action="" style="display:inline" onsubmit="return ReadForm(this, true);">';
    once you find it replace with the following:
    $replacement = '<object><form method="post" action="" target="_blank" style="display:inline" onsubmit="return ReadForm(this, true);">';
    That should make it so when the add to cart button is clicked it opens a new window.

    But I am having some trouble.

    I found the "wp_shopping_cart.php" file in WP Simple Paypal Shopping cart and made the changes.

    I created a new page entitled “Shopping Cart” and I inserted [wp_eStore_cart_fancy1].

    Then I clicked the “Add to Cart” button on my product page. I was not taken to the shopping cart page. The product page merely reopened.

    However, when I opened the shopping cart page, my order was shown.

    The problem is getting the shopping cart page to open when I place an order.

    Please advise.

    Posted 1 year ago #
  10. amin007
    Key Master

    You just posted the same thing again. I asked you a question. Please reply to my question so I can help you:

    Are you using the WP eStore plugin?

    Posted 1 year ago #

RSS feed for this topic

12Next »

Reply »

You must log in to post.

Tips and Tricks HQ  | WP Shopping Cart  | WP Affiliate Software  | WordPress Membership Plugin