Skillnad mellan versioner av "Forms"

Från Vendre Help
Hoppa till: navigering, sök
(Skapade sidan med 'This page describes forms in the system, including their function and their parameters. ==Global forms== ===POST ?action=add_product=== TODO {| class="wikitable" |- ! Form...')
(Global forms)
Rad 28: Rad 28:
 
|-
 
|-
 
| json || Pass a field like json[data] and a data field be stored on the product in the shopping cart.
 
| json || Pass a field like json[data] and a data field be stored on the product in the shopping cart.
 +
|-
 +
| target (GET) || TODO
 
|}
 
|}
  
===?action=buy_now===
+
===GET ?action=buy_now===
  
===?action=buy_now (multiple products)===
+
TODO
  
===?action=update_product===
+
{| class="wikitable"
 +
|-
 +
! Form field !! Description
 +
|-
 +
| clear_cart || TODO
 +
|-
 +
| products_id || TODO
 +
|-
 +
| text || Pass a field like text[comment] and a comment field will be stored on the product in the shopping cart.
 +
|-
 +
| json || Pass a field like json[data] and a data field be stored on the product in the shopping cart.
 +
|-
 +
| target || TODO
 +
|}
 +
 
 +
===GET ?action=buy_now (multiple products)===
 +
 
 +
TODO
 +
 
 +
{| class="wikitable"
 +
|-
 +
! Form field !! Description
 +
|-
 +
| clear_cart || TODO
 +
|-
 +
| products[][products_id] || TODO
 +
|-
 +
| products[][quantity] || TODO
 +
|-
 +
| products[][attributes] || TODO
 +
|-
 +
| products[][text] || Pass a field like products[0][text][comment] and a comment field will be stored on the product in the shopping cart.
 +
|-
 +
| products[][json] || Pass a field like products[0][json][data] and a data field be stored on the product in the shopping cart.
 +
|-
 +
| target || TODO
 +
|}
 +
 
 +
===GET|POST ?action=update_product===
 +
 
 +
The method is set to GET if products_id and cart_quantity are passed.
 +
 
 +
TODO
 +
 
 +
{| class="wikitable"
 +
|-
 +
! Form field !! Description
 +
|-
 +
| products_id[] || TODO
 +
|-
 +
| cart_quantity[] || TODO
 +
|-
 +
| cart_delete[] || TODO
 +
|-
 +
| id[] || TODO
 +
|-
 +
| text[] || Pass a field like text[0][comment] and a comment field will be stored on the product in the shopping cart.
 +
|-
 +
| json[] || Pass a field like json[0][data] and a data field be stored on the product in the shopping cart.
 +
|-
 +
| referer_url (POST) || TODO
 +
|-
 +
| target (GET) || TODO
 +
|}
  
 
==/ajax.php==
 
==/ajax.php==

Versionen från 18 februari 2020 kl. 16.31

This page describes forms in the system, including their function and their parameters.

Global forms

POST ?action=add_product

TODO

Form field Description
clear_cart TODO
products_id TODO
quantity TODO
full_products_id TODO
attributes_comments TODO
unique_id TODO
id TODO
text Pass a field like text[comment] and a comment field will be stored on the product in the shopping cart.
json Pass a field like json[data] and a data field be stored on the product in the shopping cart.
target (GET) TODO

GET ?action=buy_now

TODO

Form field Description
clear_cart TODO
products_id TODO
text Pass a field like text[comment] and a comment field will be stored on the product in the shopping cart.
json Pass a field like json[data] and a data field be stored on the product in the shopping cart.
target TODO

GET ?action=buy_now (multiple products)

TODO

Form field Description
clear_cart TODO
products[][products_id] TODO
products[][quantity] TODO
products[][attributes] TODO
products[][text] Pass a field like products[0][text][comment] and a comment field will be stored on the product in the shopping cart.
products[][json] Pass a field like products[0][json][data] and a data field be stored on the product in the shopping cart.
target TODO

GET|POST ?action=update_product

The method is set to GET if products_id and cart_quantity are passed.

TODO

Form field Description
products_id[] TODO
cart_quantity[] TODO
cart_delete[] TODO
id[] TODO
text[] Pass a field like text[0][comment] and a comment field will be stored on the product in the shopping cart.
json[] Pass a field like json[0][data] and a data field be stored on the product in the shopping cart.
referer_url (POST) TODO
target (GET) TODO

/ajax.php

GET ?mode=shopping_cart_item_set_data

TODO

Form field Description
products_id TODO
key TODO
text TODO
json TODO

/checkout.php

?changeQuantityProduct