| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
X-Configurator => with a base Price+base Weight+base etc. | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
X-Configurator => with a base Price+base Weight+base etc.
Got it working, implemented into with all these other changes our client requested for. I'm sorry that I cannot disclose the link of the website.
Here's the basic idea of the changes. I'm not good at writing tutorials.... So for more details, you'd prolly have to figure it out yourself This sloppy little guide will be applied on X-Cart Gold v.4.0.14. ---------------------------------------- Let's talk about the check out first: First, we need X-Cart to do shipping calculation on all configurator products (Base product). So, open up func.php, look for the function listed below, and replace the commented out code, with the line of code right below it. Code:
Add a base price for the configurator product. Needs to change 2 functions under func.php Code:
Code:
Now the Configurator Product has a regular product's price and weight, it'll add up to the total, apply tax, and all other stuff automatically. Please edit all the *.tpl's (example: cart_details.tpl) so that the Configurator Product will also show its price/weight. But... what's the point of having a base price and a base weight, when you can't even type them in on our back-end?!?!?! First, implement all the form fields from skin1/main/product_details.tpl to skin1/modules/Product_Configurator/product_details.tpl... like "price", weight, this that... bla bla bla... so you could at least enter a price and weight to the Configurator Product. then, we'll need to edit a PHP file so that X-Cart could record the price and weight and other stuff into the database. Under modules/Product_Configurator/product_modify.php: X-Cart insert '0' as price for the C-Product. We want OUR own price: Code:
X-Cart doesn't update price, doesn't update weight, quantity... etc. But we would like to be able to: (put the following code right under, or right above where X-Cart updates the images. So that X-Cart will also update price and weight and etc.) Code:
and then.. replace the following commented out line (the first line) with the junk below: Code:
|
|||||||
#2
|
|||||||
|
|||||||
Moving to Custom Mods
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#3
|
|||||||
|
|||||||
great mod just what i was looking for
tried it and it works great!!!
__________________
Version 4.0.17 |
|||||||
#4
|
|||||||
|
|||||||
Re: X-Configurator => with a base Price+base Weight+base etc.
I'm using x-cart-4.1.9 gold and I can't find any of this code. When you say, "open up func.php" which func.php do you mean?
__________________
Jon x-cart-4.1.11gold |
|||||||
#5
|
|||||||
|
|||||||
Re: X-Configurator => with a base Price+base Weight+base etc.
X-Cart 4.1 is greatly different from X-Cart 4.0. You'll need to search files in the include/func/ folder.
|
|||||||
#6
|
|||||||
|
|||||||
Re: X-Configurator => with a base Price+base Weight+base etc.
Has anyone tried this mod in 4.19? I'm attempting to do it but not sure exactly where to start?
Greg
__________________
Greg Hodges ProDJpc XCart Gold 4.1.9 Windows XP Pro |
|||||||
#7
|
|||||||
|
|||||||
Re: X-Configurator => with a base Price+base Weight+base etc.
I think there are a number of us that could use this mod rewritten for 4.1.9. I'm looking at it now, and while the code is similar - it's different enough that a little bit more experienced help would be useful
Any help?
__________________
Version 4.1.9 |
|||||||
#8
|
|||||||
|
|||||||
Re: X-Configurator => with a base Price+base Weight+base etc.
Anyone have an update on this?
__________________
Version 4.1.9 |
|||||||
|
|||
X-Cart forums © 2001-2020
|