John Davidson

php - What is Product Variable and Schema in cs cart

0 comments
Message:


I am working on the documents section in order to add some extra information needed when printing orders and I am having some issues adding a variable I need showing. I am using CS-Cart version 4.4.3, going to Admin Panel > Design > Documents > Invoice > Products Table > Item Description.


As shown on the screenshot attached, we have some standard variables provided by cs-cart, which includes p.procude_code (SKU), but I also have a different product code which is a product feature, and I have no idea how to get it showing here.


The product code I want to fetch, is shown on the product_feature table as the number 8, which I want to grab his value and show it there.


    "8": {
"feature_id": "8",
"company_id": "1",
"feature_type": "T",
"parent_id": "7",
"display_on_product": "Y",
"display_on_catalog": "Y",
"display_on_header": "N",
"description": "Product Code",
"lang_code": "en",
"prefix": "",
"suffix": "",
"categories_path": "",
"full_description": "",
"status": "A",
"comparison": "N",
"position": "0",
"group_position": "0",
"value": "Z000116",
"variant_id": "0",
"value_int": null
}


My Answer:
and navigating to Settings > Order statuses > Documents. In the Documents section, you can add variables to the document templates by using the Product Variable and Schema.

The Product Variable allows you to insert information related to the products in the order, such as product name, price, quantity, etc. You can add the Product Variable by clicking on the "Insert Variable" button and selecting the desired variable from the dropdown menu.

The Schema, on the other hand, allows you to customize the layout and structure of the document template. You can add the Schema by clicking on the "Insert Schema" button and selecting the desired schema from the dropdown menu.

To add the variable you need showing in the document template, you can use the Product Variable and Schema to customize the layout and content of the document. Make sure to save your changes after adding the variable to see it reflected in the printed orders.

Rate this post

4 of 5 based on 9003 votes

Comments




© 2024 Hayatsk.info - Personal Blogs Platform. All Rights Reserved.
Create blog  |  Privacy Policy  |  Terms & Conditions  |  Contact Us