Hiya,
Perhaps if the cost isn’t too much I could pay you that back so that then when it goes into my plugin for future use / sales you haven’t lost out in any way?
Just I wouldn’t want you having to pay a developer for something and then I get sales on the plugin with you having given me the code for nothing.
Don’t know if that helps at all?
Best wishes,
Mark
My shopping cart was working fine but now I am facing an issue in IE7. (it did work before in IE7). When I click the “add to cart” button, the product does get added to the cart BUT I am getting redirected to the index.php. In FF this does not occure. Anybody have an idea why this would happen? I would like to stay on the current page and the product gets added to the cart. This is the way it used to work and also the way it works on Mark’s example website.
edit: also when I remove an item from cart, it does get removed but again I get directed to the homepage.
I pointed the dns information for the domain to the server yesterday. Thats a change that I know. Nothing else changed on the server. I am still working on the project, making changes to templates etc. I did not change anything in the shopping cart templates though. I dont understand where the redirection could come from. Its not in the url path in the template. Does this line of code (from the index template from the documents) have anything to do with it:
{exp:simple_commerce:purchase entry_id=”{entry_id}” success=”site/success” cancel=”site/index”}
I am not using this line in my project, but did see it in the docs.
I think I figured it out. The “url to root directory of your site” field should not include www. I am not sure why or why not but I just took www out and now everything is back to normal.
Excellent, glad to hear that and the server change would explain that away.
-> Hey Mark. Did u get my PM regarding the shopping cart extension?
Just getting to them all now. Been an absolutely crazy day but will answer as soon as I can.
Speak to you soon.
Best wishes,
Mark
Hi Mark,
I have an issue with the Shopping Cart Plugin. When I press “Empty Cart” the cart does not empty. I do get redirected according to my settings, but the cart is still full. My “Empty Cart” code looks like so:
{exp:shopping_cart_functions:empty_shopping_cart redirect="warenkorb/ansehen" referring_page="yes"}
Also: Is there a way to change the decimal separator to a comma in place of a colon? In SCM I can do
{exp:simple_commerce:purchase […] decimal=","}
but in
{exp:shopping_cart_functions}
I can’t.
Thanks in advance for your wisdom!
Hi Mark, I have an issue with the Shopping Cart Plugin. When I press “Empty Cart” the cart does not empty. I do get redirected according to my settings, but the cart is still full. My “Empty Cart” code looks like so:{exp:shopping_cart_functions:empty_shopping_cart redirect="warenkorb/ansehen" referring_page="yes"}
I’m not really sure why that would be doing that. I’ve never heard of that problem before on anyone else’s system. Are you removing the index.php file on your site by any chance? If so then perhaps try with the .htaccess file out of the equation first and see if that fixes things up. If not then have you tried logging in as a different user and seeing if it still does it. Shouldn’t really make any difference but just had one thought. The only other thing I can think to try is do you have a set of templates set up as per the documentation as I just installed this very quickly on a brand new install of ExpressionEngine 1.6.7 and had no problems with it. I’m just wondering if there’s perhaps something slightly odd in one of your templates interfering or something? Might be an idea to bring the templates back to the bare minimum to get it all working again and then add in from there on until you find out what’s breaking it?
Also: Is there a way to change the decimal separator to a comma in place of a colon? In SCM I can dobut in{exp:simple_commerce:purchase […] decimal=","}
I can’t.{exp:shopping_cart_functions}
If you have the Find & Replace plugin installed in your system then you could do something like this around any of the cost variables to get at what you need.
{exp:replace find="." replace=","}{total}{/exp:replace}
Hope that helps a bit.
Best wishes,
Mark
Thanks for the Find and Replace plugin suggestion, I’ll definitely try that. No dice on the other problem however. I removed .htaccess, put index.php back in the URL, tried as a logged out user, tried in another browser, emptied cache… still the cart does not empty.
Hmm I’m not too sure on that one as I’ve not come across that one before. Did you try setting up the cart exactly as per the documentation just to make sure that it’s not anything in your template that might be doing it?
Best wishes,
Mark
Oops one other thing to mention would be to check your actual link that sends you to the empty cart template.
I unfortunately had a problem with the inverted commas in the documentation PDF which may be causing problems so perhaps just check exactly what the link looks like when you hover over the Empty Cart link.
Best wishes,
Mark
I have one small issue with the display of sales vs regular price and one question about the plugin.
1.) I enter both regular price and sales price and I DO NOT check the use sales price button. However, for all my items, only the sales price gets displayed. Here is the code I use in the template.
{exp:simple_commerce:purchase entry_id="{entry_id}" success="site/success" cancel="site/index"}
{if item_use_sale}
<span>Sale Price</span>{item_sale_price}
{if:else}
<span>Price</span>{item_regular_price}
{/if}
{/exp:simple_commerce:purchase}
2.) For this current project I need to have different prices for different member statuses. In the simple commerce pricing options I see a field called “New Member Group”. I was trying to save different prices for different member groups but it didnt seem to work. Is this option available or would that be somethign custom?
Hi Florian,
I have one small issue with the display of sales vs regular price and one question about the plugin. 1.) I enter both regular price and sales price and I DO NOT check the use sales price button. However, for all my items, only the sales price gets displayed. Here is the code I use in the template.{exp:simple_commerce:purchase entry_id="{entry_id}" success="site/success" cancel="site/index"} {if item_use_sale} <span>Sale Price</span>{item_sale_price} {if:else} <span>Price</span>{item_regular_price} {/if} {/exp:simple_commerce:purchase}
Not too sure why that would be doing that although that’s not anything to do with my plugin as that is the standard Simple Commerce Module code.
2.) For this current project I need to have different prices for different member statuses. In the simple commerce pricing options I see a field called “New Member Group”. I was trying to save different prices for different member groups but it didnt seem to work. Is this option available or would that be somethign custom?
The New Member Group drop-down part of the Simple Commerce Module is so that once a user has purchased an item / entry you can promote their user to a different member group if you want to do so. This enables you to do things like showing different content on a site to paid members as opposed to non-paid members.
More information can be found at the bottom of this page here.
Hope some of that helps a bit.
Best wishes,
Mark
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.