Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

Show Cart function in popup window or new page?

by

Tips and Tricks HQ Support Portal › Forums › Simple PayPal Shopping Cart › Simple Shopping Cart Tweaks › Show Cart function in popup window or new page?

Tagged: add to cart, new window, replace text in shopping cart in sidebar, shopping cart

  • This topic has 11 replies, 3 voices, and was last updated 12 years, 5 months ago by amin007.
Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • July 26, 2010 at 8:41 pm #1561
    PDidee
    Member

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

    July 27, 2010 at 6:52 am #22794
    amin007
    Participant

    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?

    July 27, 2010 at 4:54 pm #22795
    PDidee
    Member

    Exactly. How do I do that?

    July 28, 2010 at 1:38 am #22796
    amin007
    Participant

    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.

    July 28, 2010 at 1:27 pm #22797
    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

    July 29, 2010 at 1:41 am #22798
    amin007
    Participant

    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.

    October 4, 2010 at 11:45 pm #22799
    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.

    October 5, 2010 at 2:36 am #22800
    amin007
    Participant

    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?

    October 6, 2010 at 7:01 pm #22801
    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.

    October 7, 2010 at 12:55 am #22802
    amin007
    Participant

    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?

    October 7, 2010 at 5:10 pm #22803
    hdeutch
    Member

    Sorry, I didn’t see your first response. Yes, I am using WP estore plugin.

    October 7, 2010 at 11:42 pm #22804
    amin007
    Participant

    Okay in that case you are following the wrong instruction as this thread is for the “Simple Shopping Cart” plugin which is a different plugin. How do you know it’s the wrong instruction? If you look in the breadcrumb above you will see the following:

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

    Please open a new thread under eStore and give me the following details and I will tell you what you need to do:

    – Do you want to open a new window as soon as the “Add to Cart” button is clicked?

    or

    – Do you want to open a new window when the “Checkout” button in the shopping cart is clicked?

  • Author
    Posts
Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • WP PDF Stamper Documentation
  • WP Photo Seller Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial
  • WP Photo Seller Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Download Monitor

Copyright © 2023 | Tips and Tricks HQ