Have you seen any threads on the forum/wiki about how to expand the SCM to have different prices depending on the user status?
Not really sorry :-( As the Simple Commerce Module (SCM) can only hold at most two costings then it would be a little limiting to try and do this in that way. It’s not really what it was designed for so won’t handle it out of the box. You could probably do it if you were to use custom fields in a weblog but then you would need to bypass a lot of the Simple Commerce Module and probably go about writing your own module anyway I reckon.
Best wishes,
Mark
Hey! I found the solution to my problem. My shopping cart was working fine except for the “empty cart” function. Clicking it didn’t empty the cart.
Turns out your shopping cart mustn’t have the same name as the shopping cart template group. I changed the name of my cart and voila, everything worked. Could be that it was already mentioned somewhere and I didn’t see it.
Re: The other Florian’s problem: contrary to Mark’s documentation the correct syntax for checking if the sale price is enabled is:
{if item_use_sale == "y"}
Hey! I found the solution to my problem. My shopping cart was working fine except for the “empty cart” function. Clicking it didn’t empty the cart. Turns out your shopping cart mustn’t have the same name as the shopping cart template group. I changed the name of my cart and voila, everything worked. Could be that it was already mentioned somewhere and I didn’t see it.
Oops sorry about that I could have sworn I had written that in the documentation. I do have it written up in some old documentation but that unfortunately obviously didn’t make its way into the PDF document. Sorry about that!
Re: The other Florian’s problem: contrary to Mark’s documentation the correct syntax for checking if the sale price is enabled is:{if item_use_sale == "y"}
Yep another one of my documentation errors although this one I definitely did know 😉
Thanks for bringing those to my attention though, will get the documentation fixed up as soon as possible. There is actually one other minor error in the documentation which I’m quite surprised that no-one has ever come across as it would completely stop your cart from working but it’s an easy thing to spot and fix just surprised no-one’s seen it if copy pasting the code 😊
Best wishes,
Mark
A very random question here.
I’m setting up a site which will be subscription based access. I’d like the ability to give people Coupon Codes which would offer them a reduction on the annual subscription.
My understanding is that I’ll need to create a blog for the product. My product will be a 12 month subscription to my site and will cost say £10 per year.
Is it possible to have additional products in the blog, called for example ‘JULYOFFER’ which would give the user a £5 discount.
To add this ‘product’ they would need to enter the coupon code (which would match the entry title) into the search box (which would only searc the product blog and would require 100% match). If it’s found in the search the user would then be given the option to add that product to their basket.
The coupon ‘product’ would have a negative price, thus reducing the subscription by £5.
Mark Just bought the plugin and set up the templates and immediately find the issue with the curly quotes. Remove and replace and I get this:
Error
The following tag has a syntax error:
{exp:shopping_cart_functions}
Please correct the syntax in your template.
the cart-contents template is throwing the error but it’s direclty from your documentation.
Any ideas?
just in case this is the code from my template
{exp:shopping_cart_functions cart_name="shop"}
{if count == total_results}
<h3>Your Cart</h3>
{/if}
{/exp:shopping_cart_functions}
{exp:shopping_cart_functions cart_name="shop"}
{if count == 1}
<table cellpadding="5" class="sales-specifications">
{/if}
<tr class="{switch="odd-row|even-row"}">
<td>
<a href="http://{path=" title="Decrease {title}">{site_url}images/site/layout{switch=</a><a href="http://{path=" title="Remove {title}">{site_url}images/site/layout/{switch=</a><a href="http://{path=" title="Increase {title}">{site_url}images/site/layout/{switch=</a>
{title} ({qty})
</td>
</tr>
{if count == total_results}
<tr class="cart-totals-row"><td>Total - £{total}</td></tr>
</table>
{/if}
{if count > 0 AND count == total_results}
You have {cart_items_count} items in your cart
<a href="http://{path=" title="View Cart Contents">View Cart</a> | <a href="http://{path=cart/checkout}" title="Checkout">Checkout</a> | <a href="http://{path=" title="Empty Cart">Empty Cart</a>
{/if}
{/exp:shopping_cart_functions}
I FORGOT TO PITCH THE PLUGIN OUT ON THE SERVER! SORRY
Hey Mark
I was wondering if your plug-in would be a good solution for me.
I am a visual/layout designer who understands html and css, but gets lost in the world of php and other coding systems!
anyway, I was wondering if you can help me out. I am translating a store from Japanese to english (I am making the english site in EE.
We are running into problems in that the Japanese shopping cart service thy are currently using is for IN japan only.
One solution to this problem is to make one new cart which will accompany our english customers and japanese customers.
or perhaps have run the entire system in EE (which in my opinion would be best)
What we need is a shopping cart that can be in Japanese for our Japanese customers and English for our English customers.
We need to set up original shipping methods, since the shipping methods in Japan and the US are different (in japan, it is common to set up the day and time of when you would like the package shipped… so nice!)
What we don’t really need is payment gateways. We need to just have a simple radio-selection for this because the payment options are different between Japan and the rest of the world! I love being able to pay for everything at the 7-11!
we just need to put products in a cart, have the customer select which payment/shipping information they would like to use, and then mail the order to us (and maybe store the order info in the EE system)
But I guess the biggest problem I may run into is dealing with the inventory count.
I think i can manage sale pricing in the beautiful bi-lingual product weblog i had already built.
anyway. I hope you might be able to help me out.
thanks
Val
Hey Mark
I just purchased your plugin and all is working beautifully with your default templates in 1.6.8. The only thing is, once I have succssfully made a purchase using my PayPal Sandbox accounts and return back to my EE Store, the cart still contains the items I have just purchased.
Do you know why the cart would remain full after a purchase?
I should mention that IPN is active although I am not going down the route of requiring the user to have an EE Membership to make purchases.
It might also be worth mentioning that my “empty cart” link also doesn’t work, is this related? If so i did see the posts earlier on in this thread about this issue and have made sure that my cart (aka the weblog that contains all my products??) is named differently to the template group which holds all the cart templates.
Many thanks
Hey Mark I just purchased your plugin and all is working beautifully with your default templates in 1.6.8.
Thanks for the purchase, glad to hear the defaults are all working.
The only thing is, once I have succssfully made a purchase using my PayPal Sandbox accounts and return back to my EE Store, the cart still contains the items I have just purchased. Do you know why the cart would remain full after a purchase?
You will need to get your payment processor to send the user back to a template which contains the empty cart plugin code :
{exp:shopping_cart_functions:empty_shopping_cart redirect="cart/view" referring_page="yes"}
This will then do two things :
1 - Empty the cart and, 2 - Allow you (using the redirect=”“ parameter to redirect the user to wherever you would like after a successful purchase.
Only thing I would say is if you are having trouble with any of the plugin codes then it’s actually best to write them out by hand as I have had a few reports of the quotes coming out as curly quotes when copied and pasted from the PDF. Never does it to me but I know that it does happen so that’s all you might need to do.
It might also be worth mentioning that my “empty cart” link also doesn’t work, is this related? If so i did see the posts earlier on in this thread about this issue and have made sure that my cart (aka the weblog that contains all my products??) is named differently to the template group which holds all the cart templates.
Hopefully the note above should fix this.
Hope that helps a bit.
Best wishes,
Mark
You will need to get your payment processor to send the user back to a template which contains the empty cart plugin code
Of course, sometimes the simplest solutions are the easiest to overlook.
Only thing I would say is if you are having trouble with any of the plugin codes then it’s actually best to write them out by hand as I have had a few reports of the quotes coming out as curly quotes when copied and pasted from the PDF. Never does it to me but I know that it does happen so that’s all you might need to do.
Yes, it came out entirely with curly quotes for me too, but I have definitely corrected all these and unfortunately the empty cart plugin code just aint working for me. Any other ideas?
Yes, it came out entirely with curly quotes for me too, but I have definitely corrected all these and unfortunately the empty cart plugin code just aint working for me. Any other ideas?
I’m not too sure in that case. The plugin hasn’t actually been tested for anything above ExpressionEngine 1.6.7 although I don’t really see that as being the problem here hopefully.
When you visit the template with the empty cart plugin code in it what happens exactly? Also what have you used as the name of your shopping cart? I’m wondering if that might be it perhaps? Might be worth changing the name of the cart to something else in all your templates.
Best wishes,
Mark
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.