Hi there,
I'm looking for a solution on how to sit a product in visitor's cart once he first visits my store. In other words, you open my store and there is a product already in your cart. And I likely gonna have only a single product in my store, I guess.
Is there a module for that?
I'm looking for a solution on how to sit a product in visitor's cart once he first visits my store. In other words, you open my store and there is a product already in your cart. And I likely gonna have only a single product in my store, I guess.
Is there a module for that?
You can do this with a simple JS script, which will execute cart.add() function on page load with predefined product ID and quantity.
Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com
And how you know what product want the customer?opensource wrote: ↑Thu Jan 20, 2022 4:48 pmIn other words, you open my store and there is a product already in your cart.
Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer
Let's assume I'm going to have only one product in my shopxxvirusxx wrote: ↑Thu Jan 20, 2022 5:04 pmAnd how you know what product want the customer?opensource wrote: ↑Thu Jan 20, 2022 4:48 pmIn other words, you open my store and there is a product already in your cart.
It may not be required by customers. A default product can also be defined as a store-interest strategy rather than the customer when creating an account with customer groups, for instance. This could be easily accomplished with an Event Trigger.xxvirusxx wrote: ↑Thu Jan 20, 2022 5:04 pmAnd how you know what product want the customer?opensource wrote: ↑Thu Jan 20, 2022 4:48 pmIn other words, you open my store and there is a product already in your cart.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Now that the issue has been solved, please add: [SOLVED] at the beginning of the subject line on your first post.opensource wrote: ↑Thu Jan 20, 2022 5:11 pmThat would be terrific. I'll give it a go. Thank you bunches.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Who is online
Users browsing this forum: No registered users and 203 guests