Jump to content

 

sitmgreg

Member Since 01 Jun 2016
Offline Last Active Jan 08 2019 12:18 AM
-----

#308298 Distinct Url For Product Option Combination?

Posted by sitmgreg on 29 October 2018 - 08:19 PM

ah ok. This is in fact possible. It appears if you add

 

   combination={option_id}_{variant_id} 

 

you can set product options in the URL

 

 

If anybody knows offhand where this is documented that would be interesting to see anyhow.




#293555 Database Operations On Upgrade

Posted by sitmgreg on 19 January 2018 - 12:54 AM

ok whoops I thought I had done

 

define('DEVELOPMENT', true);
 
but I did not.



#278580 Free Shipping / Shipping Not Required

Posted by sitmgreg on 08 June 2017 - 08:34 PM

Yeah I'm not sure which addon you're talking about.

 

What ended up working out for us is like this:

 

"No shipping" product weighs nothing

All other products have an accurate weight

 

"Ship Method A": a realtime method with a minimum weight requirement of 0.01lb

"Ship Method B": a different realtime method with no minimum weight requirement, used for free shipping

 

 

So if someone buys the "ships for free" product, they only see method B, because it's under the weight limit of method A. If they buy that product and something that DOESNT ship for free, they will see both options because the order is now within the weight requirements of both methods.




#253513 Theme Development Best Practices

Posted by sitmgreg on 23 June 2016 - 10:08 PM

I am working on a theme based on the CS Cart Boilerplate available on github. Here is what I have done so far:

 

- cloned it to design/themes/boilerplate

- copied that theme to design/themes/company

- modified its manifest.json

 

As I understand it, if you upgrade a site, files in design/themes get overwritten if there are more up to date files, and the only way to avoid this behavior is to work with the hooks structure and by using overrides if necessary.

 

This work should happen in an addons folder within your theme, so for example `design/themes/my_theme/addons/my_addon/` should hold your divergences from the stock theme.

 

However the boilerplate theme is based on a 12-unit grid, using standard bootstrap classes, we want to use a 16 column grid. So most `class=` declarations are going to have to be replaced in our case.

 

Is there documentation on how file replacement on upgrade occurs?