Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
Locked
0

Force Refresh the Shopping Cart Quantities?

Participant ,
Mar 05, 2014 Mar 05, 2014

Hey guys,

Is it possible to refresh all shopping cart items on demand?

Here's what my client wants:

They want magazine subscribers who visit their site to be able to punch in their Member ID (11 digit number found on their magazine label) in the shopping cart and get the 15% discount that comes with the membership.

  • Having members login to a secure zone is out of the question
  • Individual discount codes would be to cumbersome to keep up with

My idea on how to make it work:

At the top of the cart page, I would ask if they are a member. If yes, a form would appear.

This form would be setup with two fields.

  • e-mail address
  • Member ID
    • Since i have no way of verifying their member ID i would set it to accept any 11 digit number.
    • The client is ok with this idea.

When the form is submitted, the form will set the user up as a wholesaler and log them in (without them knowing)

This will change the store prices to reflect the 15% discount.

The Problem:

This all works great with one big problem. Any item that was in the cart before filling out the form continues to show retail pricing instead of wholesale.

If you change the quantity or remove and add the same item back to the cart it works.

This leads me to my original question. Is there a way to refresh / reload the cart items so that they display the correct price as a wholesaler?

Any help on this would be amazing!

TOPICS
eCommerce
1.7K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Mar 05, 2014 Mar 05, 2014

For that to work with no login you would have to expose ALl the member ID's on the front end of your site and the discount codes. I could just grab them myself and use them to get discounts.

In terms of the price changing from retail to wholesale - This is not possible because your not logging in. This feature only works if your logged into the system, same with the catalog specifc discounts, this only works to a CRM customer who is logged in.

Without logging in all you have is discount codes and gift vouchers and to auto populate those you would again have to expose the discont code on the front end.


Without API work to keep that data out of the system or offering a logged in solution, you wont get this to work with wholesale pricing and you would have to expose data openly.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Mar 05, 2014 Mar 05, 2014

Hey Liam, Thanks for the quick response.

I should have been more specific when i said that login in is out of the question.

My client doesn't want people to have to remember a username and password. I'm not opposed to using the CRM and having people logged in.

The solution that i proposed actually logs people in when they enter the e-mail, 11 digit number and click submit.

I have been able to successfully do this. on the site. The big problem is the cart items not reflecting the updated pricing.

With this additional info, do you have any suggestions?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Mar 05, 2014 Mar 05, 2014

Really?

This was an issue with wholesale price back in the day but corrected. I take it this is because your doing an ajax login method with that data?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Mar 05, 2014 Mar 05, 2014

Another idea I had was to not use a web form and wholesale pricing but create an input and button that would trigger some JavaScript that added a discount code and submitted it.

I realize that this wouldn't be real secure in that someone could figure out the system and get the discount. My client is not concerned about the handful of people that may take advantage of it. he's more interested in it being easy to use.

I have no idea if this is possible. It doesn't sound like it would be out of the question with some of the things I've seen done here. I'm just really new to JavaScript and haven't been able to figure it out.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Mar 05, 2014 Mar 05, 2014

How and where are you logging in though?

Prices already in the cart should update to their wholesale price. This was a fix applied some time ago so if it is no longer working again then it is something we need to pass on to the BC team.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Mar 05, 2014 Mar 05, 2014

As always it helps to see it in front of you.

here's a link to the site: http://www.tthagear.com

I've got a question at the top of the shopping cart page that asks if you have a membership. clicking yes will take you to another page where you give your e-mail and 11 digit number.

This question is hidden. to see it, change the class on the html tag from logged-in-0 to logged-in-1 to see the form.

it's not styled or anything but it will sign up up and give you the idea.

after placing your e-mail and member ID (anything will work) it will take you back to the shopping cart and you will be logged in as a wholesaler.

I hope that makes since.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Mar 05, 2014 Mar 05, 2014

Little confused here.

So you have to be logged in to see that?

Once logged in if you have set a wholesale price on products then they are automatically applied and run those whole sale prices.


Or is that just for development?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Mar 06, 2014 Mar 06, 2014

It is temporarily hidden for development

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Mar 06, 2014 Mar 06, 2014

Only looked at it quickly,

Noticed you have logged-1 and 0 going on but I did not see any custom loging jQuery on the form with the membership number and no username and password to properly log you in.

The webform in the admin got option tick to have as wholesaler?

And you can confirm in the CRM the person is set as a wholesaler?

You sure the products have all got wholesale prices associated with them?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Mar 06, 2014 Mar 06, 2014

Hopefully this quick video will help explain what i'm trying to do.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Mar 06, 2014 Mar 06, 2014

Ok, Gotcha...A few things

I noticed you got the html for the form via the html view.

https://ttha.worldsecuresystems.com/FormProcessv2.aspx?WebFormID=121091&PageID=%2fOrderRetrievev2.as...

This is where you get the html if you were using web forms on an external website. You use the customise web form option to get the html if you were inserting a webform with module and update the code there OR you just use the toolbox to insert it.


Your path needs to be relative.

What your doing is logging in to the secure domain but while the module shows your logged in, it wont be doing it properly because your on your normal domain.

Can you ensure you doing the form that way, your form action should be relative and instead of specifying the order retrieve page (which has paramaters in the url) to be the return you can have -1.

These are likely why when you had the form on the checkout page you were running into issues.

Can you also check the CRM entry that is made when you fill in the form has wholesaler ticked.

If this does not work, then try to have the username and password fields in, username based on email, password based on the member ID.

I also noticed the member ID is a custom field. Make that a custom CRM field and include that into the form, then it is associated with the CRM entry better.

If none of that works then we can rule out any issues there and it is time to do a ticket.

I think the above will sort it but if not, you need to point support to this thread on what has been done, tried etc and what you are trying to do.

BC had a long standing issue where wholesale pricing was not updating when logged in. This WAS FIXED but if you still are not having any look you need to point 1st level support to this fact that is appears to not be working again.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Mar 14, 2014 Mar 14, 2014
LATEST

Hey Liam,

I've tried what you suggested and have some interesting results.

The one thing i wasn't so sure about was this part.

...instead of specifying the order retrieve page (which has paramaters in the url) to be the return you can have -1.

Here's the new problem:

When I submit the form from the shopping cart, it creates an order and sends me to the order receipt page

order-receipt-page.png

The order does not show up on the dashboard. however, it shows up under orders and it propperly ticks the wholssaleer box and submits the custom crm entry.

Since it is placing an "order" it clears the shopping cart which is worse than it not showing the correct price.

Any ideas?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines