Documentation You are here: start » v » 2.0 » hmac_validation

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
v:2.0:hmac_validation [2019/07/10 21:22]
marija [PHP: Helper Function]
v:2.0:hmac_validation [2020/03/24 03:37] (current)
adam [Bundled Products]
Line 193: Line 193:
  
 ====Bundled Products==== ====Bundled Products====
-Because ​the child product in a bundled product setup often has a different price than if the product were added by itself, we require that the product code used to hash the child product contains both the parent code and the child code in the format {childcode}{parentcode}. ​So if you are adding a T-shirt with the code "shirt" ​and a child product with the code "poster", the child product ​fields ​would be hashed with the code "postershirt". The parent product would be hashed like normal with the code "shirt".+As the child product in a bundled product setup often has a different price than if the product were added by itself, we require that the product code used to hash all attributes of the child product contains both the parent code and the child code in the format ​''​{childcode}{parentcode}''​ (but without the curly brackets) 
 + 
 +For example, ​if you are adding a T-shirt with the code ''​shirt'' ​and a child product with the code ''​poster''​, the child product ​attributes ​would be hashed with the code ''​postershirt'',​ instead of just ''​poster''​. The parent product's attributes ​would be hashed like normal with the code ''​shirt''​.
 ==== An Example ==== ==== An Example ====
  

Site Tools