I agree that the current default behavior isn't great for everybody. I'm not thrilled by it myself but have lived with it so far.
One approach would be to improve the default behavior in cartridge, though I don't have a proposal for a more generally acceptable format at hand. Another approach would be to add a cartridge setting for a function that formats this string, but I'm not sure that can be justified. Perhaps monkey-patching the ProductVariation.__str__ method would be the best approach. I don't think I've monkey-patched model methods before but you might come up with a sensible way to do it with experimentation and/or searching the web. Please give a report if you come up with anything. On 11/02/2016 05:20 AM, Pete Dermott wrote: > Hi Everyone, > > I'm looking to create a Cartridge store that offers the ability for > customers to buy low cost samples of our products, my thought was to > use the variations system to do so. > > However, when I get to the checkout the system puts the items in the > cart as $ProductName $ProductOptionType: $ProductOptionName so for > example, with my product option type of "Shippable" this turns into > "Product Name Shipable: Sample" which isn't really ideal. > > What I would like to do instead is remove the modification of the > product description and show the original description and a separate > field for the products SKU instead. > > I believe the modification to the name is taking place > incartridge.models.ProductVariation file's __str__ method > <https://github.com/stephenmcd/cartridge/blob/master/cartridge/shop/models.py#L229> > but I've got no idea how I can modify this without causing issues with > other parts of the site. > > What is my best option here? > -- > You received this message because you are subscribed to the Google > Groups "Mezzanine Users" group. > To unsubscribe from this group and stop receiving emails from it, send > an email to [email protected] > <mailto:[email protected]>. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Mezzanine Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
