| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Changing Price through HTML Links | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Changing Price through HTML Links
I have a custom product store and I've made a designer page (outside of X-Cart) that will calculate the price based on many variables. In X-Cart 4, I could send code to the cart like this:
See Below - Edit won't work
__________________
X-Cart version 4.4.5 X-Cart version 5.3.2.8 |
|||||||
#2
|
|||||||
|
|||||||
Re: Changing Price through HTML Links
I have a custom product store and I've made a designer page (outside of X-Cart) that will calculate the price based on many variables. In X-Cart 4, I could send code to the cart like this:
Code:
How do I change the price in X-Cart 5?
__________________
X-Cart version 4.4.5 X-Cart version 5.3.2.8 |
|||||||
#3
|
|||||||||
|
|||||||||
Re: Changing Price through HTML Links
What if a customer opens such a link but with "price=0.01". Will it allow him to buy the product for a cent?
It looks very unsecure to me. I think you should look into using REST API to inject one-time validation codes into a custom XC5 table, then pass a hash from this code along with your "custom price" request and validate if the hash compares to the validation code stored in the database. But this requires a custom module, of course.
__________________
Alex Solovev, Qualiteam --- User manual Video tutorials X-Cart FAQ You are welcome to press "Thanks" button if you find this post useful Click here to learn how to apply patches X-Cart Extensions |
|||||||||
#4
|
|||||||
|
|||||||
Re: Changing Price through HTML Links
I understand your concern, but I had a custom application built to handle my custom product. There isn't a place where the customer can see any code to change. It all happens through the application and would be secure (I've used it in X-Cart 4 for years).
I just need to know what variable to put in to change the PRICE in X-Cart 5?
__________________
X-Cart version 4.4.5 X-Cart version 5.3.2.8 |
|||||||
#5
|
|||||||||
|
|||||||||
Re: Changing Price through HTML Links
You can't do this in the "stock X-Cart 5" due to security reasons.
You have to create a custom module that will allow you to do this on your site (and I still don't recommend going this way and suggest you to consider more secure methods).
__________________
Alex Solovev, Qualiteam --- User manual Video tutorials X-Cart FAQ You are welcome to press "Thanks" button if you find this post useful Click here to learn how to apply patches X-Cart Extensions |
|||||||||
|
|||
X-Cart forums © 2001-2020
|