user996 Da Sconosciuto Membro dal dic -0001 user996 3 nov 2014 08:53 Hi. I really love your shop system. There is only one thing Im trying to work out. I need an additional Price Operator. At the moment +,% and * is supported. Im trying to ad - to cut off an amount from a product. For example: white T-shirt is $1 cheaper than colored ones. I don't want to have an extra item just for the white one. I already found the file to add the new operator to the drop down. But I cant find out where the calculation is done. Im just getting a JS alert with""error"". Can you please point me to the files I have to change? Thanks in advance.
litecart Main Crew Da Sweden Membro dal feb 2013 litecart 3 nov 2014 17:35 Are you not able to select + as operator and set -1 for the value?
user996 Da Sconosciuto Membro dal dic -0001 user996 4 nov 2014 01:07 Of course I'm able to do that. But this is not the point. In a system like Litecart nobody should be forced to use dirty workarounds. If you want to add something select + and if you want to subtract something select -. Following your philosophy you don't need % too. If you want to add 50% just use *1.5 as an operator...Anyway. Thanks for the help. Im going to find it out by myself.
litecart Main Crew Da Sweden Membro dal feb 2013 litecart 4 nov 2014 02:42 You have a point. I will see to add this to the next version.
user996 Da Sconosciuto Membro dal dic -0001 user996 24 nov 2014 04:02 Hahaha... Now in the new DEV version the % selector is removed too. I like that kind of improvement... Anyway. I'll stay with my old shop system. Good luck with what you are doing. A good idea and a good system but with the lack of proper support and documentation it's a no go. Sorry.
litecart Main Crew Da Sweden Membro dal feb 2013 litecart 25 nov 2014 03:28 I dunno where you got that information. In the latest dev version it states:functions::form_draw_select_field('options['.$key.'][price_operator]', array('+','%','*'), ...Things change too fast from writing a documentation/wiki, which has been encouraged to be written by the community. LitCart is give and take. Most users just come here take and leave nothing for others. Then they complain about lack of support or documentation and leave.
Eliminato Da Sconosciuto 24 ago 2020 14:10 Dear @litecartthere are posts of users asking for fixed price 6 years back. @vilaiporn has been very helpful yesterday in leading to one of his posts for deleting the price from options boxes displayed on the page.is there way to change the price operators from + / % / * to = / + / % / * it will save a lot of hassle .tried searching for the above form_draw_select_fieldbut after 6 years it now looks like thisproduct.inc.php line 312$values .= functions::form_draw_select_field('options['.$group['name'].']', $options, true, !empty($group['required']) ? 'required="required"' : '');the product price is set to 45 but on selecting any of the option it turns to +45 to the total.I found if i change the product price of options to -45 and put in the amount it will work but quite a hassle and the system is to be managed by customer on daily basis.Don't know about the forum rules so didn't put my url to show it.thanks in advance.
tim Founder Da Sweden Membro dal mag 2013 tim 24 ago 2020 17:01 Try thishttps://github.com/litecart/litecart/commit/011f53b7deb1148a71a62105a00f83391bac484f
vilaiporn LiteCart Fan Da Thailand Membro dal ago 2017 vilaiporn 17 feb 2024 02:54 Hello,How can I get it to work on 2.1.3?Thank you
tim Founder Da Sweden Membro dal mag 2013 tim 17 feb 2024 21:25 You would have to work out what this commit does and apply it on 2.1.3.But I really recommend upgrading to 2.5.x for an awesome experience.
vilaiporn LiteCart Fan Da Thailand Membro dal ago 2017 vilaiporn 18 feb 2024 03:43 Hello, the website went under a super huge customization and sub sequential customization of customizations from several actors through the centuries and an update will destroy it.But I will work out and let you know.
tim Founder Da Sweden Membro dal mag 2013 tim 18 feb 2024 17:59 I have the impression you made it too hard for yourselves. Migrating a heavily modified site could be an afternoon's worth of work.See this wiki article how to adapt to githttps://www.litecart.net/en/wiki/how_to_adapt_to_git