oilsbyashy Merchant Từ Australia Thành viên kể từ thg 6 2023 oilsbyashy 5 thg 8 2023 13:59 So I'm guessing I'm just doing something wrong, but we have a product with 3 weight options, we add the weight options and set the order and price increments but it doesn't default the product to the top listed option. So we are then left with no option to put a price on the product which has no option to add a weight and the minute we add a price at all all the option price increments stop working. I'm guessing there is a section I haven't filled out which is causing the issue but I cant find it and i cant find a matching question in the forums here. For technical reference the link is: https://oilsbyashy.com/pure-organic-whipped-body-butters-c-5/bee-composed-whipped-body-butter-p-17
tim Founder Từ Sweden Thành viên kể từ thg 5 2013 tim 5 thg 8 2023 14:34 Hi. LiteCart does not default to a specific option. An active choice is always required. https://demo.litecart.net/rubber-ducks-c-1/subcategory-c-2/yellow-duck-p-1 Set the price of the product to the first option. Then set that first option to adjust price by +- 0. The other two should be realtive to the product price, meaning you only set the adjusting value, not the final price.
oilsbyashy Merchant Từ Australia Thành viên kể từ thg 6 2023 oilsbyashy 6 thg 8 2023 16:21 Thanks tim, as our products are measured in weights not size we didnt want to have to put the weight in the title of the products as it looks quite ugly but you have to for this scenario otherwise your default item price doesnt specify a weight. Just note your demo link is also broken, all your size options are the same price it doesnt change when selecting options so if i set a product price the option price adjustments dont work. The price options only work if the product price is set to zero
btkg LiteCart Fan Từ United Kingdom Thành viên kể từ thg 7 2019 btkg 8 thg 8 2023 19:33 Not sure if this is going to help but I had a look at the page you supplied as an example and if you remove the SKU line and change "size" to "weight" would that not have the desired effect?
tim Founder Từ Sweden Thành viên kể từ thg 5 2013 tim 10 thg 8 2023 14:43 I can't reproduce this in the demo.
oilsbyashy Merchant Từ Australia Thành viên kể từ thg 6 2023 oilsbyashy 11 thg 8 2023 01:37 Hi Tim, I just checked again, if i change options in the latest version of google chrome on your demo the prices do not change. Thanks btkg, the size is just the name of the attribute its code is weight :) The core issue is that unless i set my products price to $0 the options dont work at all no matter what variation of modifier you use, then naturally the products show everywhere with no price which isnt ideal either I get that the option system doesnt function like other stores where you cant enter your options and choose a default one for the product but at the moment there are no work arounds that give even a basic working function. Cant have an online store where every product is $0 and having to duplicate every product for every option isnt workable either. Adding the weight of my "default" option of the product to the product name doesnt work either as if they come back for a 30g version of product A, if the only listing is the 80g version which they have to choose then change the option it would work but who would click on an 80g product expecting to find the 30g one there.
btkg LiteCart Fan Từ United Kingdom Thành viên kể từ thg 7 2019 btkg 11 thg 8 2023 10:30 This may or may not help. I am currently working up our trade site (for which read on and off project - more off than on) so this link is not to a "live" trading site more an exercise in how do we do this the way we want. Indeed the link is to a 2.5.1 site which when updated loses the "no price shown" on the category listing. Tim keeps updating faster than I can work on the thing! Anyway [url=https://buythekilo.co.uk/]https://buythekilo.co.uk/[/url] Look at the coffee section the product has no price until the customer makes a selection - maybe not defaulting to your prefered option but no confusion on the page. In the back the coffee is all priced as zero and only options are offered. Whereas the tea runs as just a regular product price. If not a direct help maybe it will give you an idea(s).
tim Founder Từ Sweden Thành viên kể từ thg 5 2013 tim 12 thg 8 2023 16:21 [quote]Tim keeps updating faster than I can work on the thing![/quote] LOL, I guess that's a good thing 😂 An upgrade takes minutes unless you have your modifications hardcoded. For hardcoded changes there are 2 ways to speed you up in the future: https://wiki.litecart.net/how_to_turn_modifications_into_vqmods https://wiki.litecart.net/how_to_adapt_to_git Have you assigned a base price for this product? https://buythekilo.co.uk/coffee-c-1/kenya-aa-p-2 If not, set it to £20. And remove the price adjustment for the Single kilo option. If you still don't see a price it could be the result of your modifications as I see you changed the view how price is presented on the product page. I'm thinking using Quantity Units might be more convenient for these weight based products.
btkg LiteCart Fan Từ United Kingdom Thành viên kể từ thg 7 2019 btkg 12 thg 8 2023 18:45 Tim Apologies if this is now "off topic". I wasn't complaining about the speed of updates - honest! It's nothing short of brilliant what you are doing with Litecart. I'm the problem, I'd tried a huge number of crappy and bloated carts before stumbling on Litecart which is perfect. It's my getting up to speed on how it works, learning the necessary amount of coding and finding the time to work up our solution after the day job - that's the problem. The updates are brilliant - every update is a learning exercise. The only reason that the site is up is that I was curious to see how it worked with softlicious which I had never used before. You and others on the forum have been more than helpful to myself and I thought that it may have assisted oilsbyashy to point them in that direction and show one potential solution to their query.. But to answer your question. There are no base prices set for any of the coffees, historically the business has used an average for our coffee offering as we found that it made life easier and stopped customers choosing based on price vs taste. I think initially I was looking for a way to do a mass update of price without resorting to noodling in the database and the options route looked ideal till we hit the "aaaah" point. As I say it's in development! As soon as we're happy with the customer side of things I'll be adding a payment option and formally going live. (Just don't hold your breath) But - thank you for links - I'll have a look at the git approach. Dave
oilsbyashy Merchant Từ Australia Thành viên kể từ thg 6 2023 oilsbyashy 14 thg 8 2023 03:41 Okay updates, thank you for the help guys but i think i locked down the issue there had been a campaign added, nothing was entered into it but it was saved in there awaiting data so i deleted that now the prices are updating. Not sure if thats something for a future update, i replicated it by again clicking add campaign, entering nothing clicking save and sure enough it sits there waiting for info and the product appears to sit broken until its removed
tim Founder Từ Sweden Thành viên kể từ thg 5 2013 tim 15 thg 8 2023 14:22 Ok, I will add a required attribute to prevent submitting empty values.
oilsbyashy Merchant Từ Australia Thành viên kể từ thg 6 2023 oilsbyashy 16 thg 8 2023 04:26 Another bugfix for you Tim, if you use the checkbox for your product options, if you were to select two options the price increases based on the difference between the two not their correct values. Example 10g default option set to = $12 (this is product price) 30g option is set to = $24 (base +$12) 80g option is set to = $48 (base +$36) if you select the 30g and 80g check boxes the price should be $72 but it offers $60 as its taking the base then adding the price increases from the base for the two options instead of calculating the two items for their actual values of $24 and $48 im guessing an if value stating that if the option is set to = use the equal value not the difference between
tim Founder Từ Sweden Thành viên kể từ thg 5 2013 tim 16 thg 8 2023 13:18 It's possible this feature is missunderstood. If a Cake product has a base price of $10. You can assign checkbox options for upgrades of the product e.g: Extra 1 +$1 Extra 2 +$1 Now Cake + Extra1 + Extra2 = $12
oilsbyashy Merchant Từ Australia Thành viên kể từ thg 6 2023 oilsbyashy 17 thg 8 2023 16:27 Yeah i think i need to use the radio button instead which is all good, can you get rid of the +$36 for the options? mine are set to = values id rather it show those equal values, i have been trying to find it in box_product_inc.php but struggling a little "80g Regular +$36" instead id like it to show 80g Regular $48 as our Price adjustment value is = 48
tim Founder Từ Sweden Thành viên kể từ thg 5 2013 tim 17 thg 8 2023 16:47 We show adjustment prices for compatibility with multiple options. In a future version this will be replaced with a Stock Option selector which makes this possible. For now you will have to tweak the code in pages/product.inc.php and box_product.inc.php.