Is it possible to have the "[show_wp_shopping_cart]" function in a popup window or open in a separate page?
Show Cart function in popup window or new page?
(12 posts) (3 voices)-
Posted 1 year ago #
-
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 # -
Exactly. How do I do that?
Posted 1 year 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.
Posted 1 year ago # -
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
PPosted 1 year ago # -
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 # -
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 # -
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 # -
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 # -
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 #
Reply »
You must log in to post.