Tips and Tricks HQ Support Portal › Forums › Simple PayPal Shopping Cart › Simple Shopping Cart Tweaks › Show Cart function in popup window or new page?
- This topic has 11 replies, 3 voices, and was last updated 14 years, 1 month ago by amin007.
-
AuthorPosts
-
July 26, 2010 at 8:41 pm #1561PDideeMember
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 #22794amin007ParticipantYou 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 #22795PDideeMemberExactly. How do I do that?
July 28, 2010 at 1:38 am #22796amin007ParticipantOpen 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 #22797PDideeMemberHmmm. 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 #22798amin007ParticipantI 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 #22799hdeutchMemberI 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 #22800amin007ParticipantJust 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 #22801hdeutchMemberI 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 #22802amin007ParticipantYou 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 #22803hdeutchMemberSorry, I didn’t see your first response. Yes, I am using WP estore plugin.
October 7, 2010 at 11:42 pm #22804amin007ParticipantOkay 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?
-
AuthorPosts
- You must be logged in to reply to this topic.