user5056 LiteCart Fan Från Netherlands Medlem sedan jan. 2018 user5056 4 apr. 2018 10:55 Hi!Our customer purchased these 2 addons from youhttps://www.litecart.net/addons/222/product-medium-descriptionhttps://www.litecart.net/addons/32/dymo-printCan you make a ajustment to the dymo-print plugin so that it shows the product medium description ? Or can you tell us what code to put where ?
tim Founder Från Sweden Medlem sedan maj 2013 tim 4 apr. 2018 15:06 (Moved to add-on forums)I have already sent instructions over email how to display the medium_description in the label. I assume you are the developer and your project leader contacted me?Basically you just swap out manufacturer with $product->medium_description.
user5056 LiteCart Fan Från Netherlands Medlem sedan jan. 2018 user5056 5 apr. 2018 13:42 The thing is we looked at this but we cannot extract the medium descryptionThese are the only values provided for $product in the dymo class ref_product Object ( [_id:ref_product:private] => 9665 [_currency_code:ref_product:private] => EUR [_language_codes:ref_product:private] => Array ( [0] => de [1] => nl ) [_customer_id:ref_product:private] => [_data:ref_product:private] => Array ( ) ) ref_product Object ( [_id:ref_product:private] => 9665 [_currency_code:ref_product:private] => EUR [_language_codes:ref_product:private] => Array ( [0] => en [1] => nl ) [_customer_id:ref_product:private] => [_data:ref_product:private] => Array ( ) ) ref_product Object ( [_id:ref_product:private] => 9665 [_currency_code:ref_product:private] => EUR [_language_codes:ref_product:private] => Array ( [0] => fr [1] => nl ) [_customer_id:ref_product:private] => [_data:ref_product:private] => Array ( ) ) ref_product Object ( [_id:ref_product:private] => 9665 [_currency_code:ref_product:private] => EUR [_language_codes:ref_product:private] => Array ( [0] => es [1] => nl ) [_customer_id:ref_product:private] => [_data:ref_product:private] => Array ( ) ) ref_product Object ( [_id:ref_product:private] => 9665 [_currency_code:ref_product:private] => EUR [_language_codes:ref_product:private] => Array ( [0] => nl ) [_customer_id:ref_product:private] => [_data:ref_product:private] => Array ( ) )
tim Founder Från Sweden Medlem sedan maj 2013 tim 5 apr. 2018 22:39 The ref object is a factory designed object that produces a result upon calling a node. What does the following return?var_dump($product->medium_description);This is the part in the vqmod that concerns the ref object:<file name="includes/references/ref_product.inc.php"> <operation error="log"> <search position="after"><![CDATA[ case 'short_description': ]]></search> <add><![CDATA[ case 'medium_description': ]]></add> </operation></file>
user5056 LiteCart Fan Från Netherlands Medlem sedan jan. 2018 user5056 6 apr. 2018 09:31 Tim,Below the output of the var_dumpstring(21) "Polyester 305 cm hoog" ref_product Object ( [_id:ref_product:private] => 10047 [_currency_code:ref_product:private] => EUR [_language_codes:ref_product:private] => Array ( [0] => de [1] => nl ) [_customer_id:ref_product:private] => [_data:ref_product:private] => Array ( ) ) ref_product Object ( [_id:ref_product:private] => 10047 [_currency_code:ref_product:private] => EUR [_language_codes:ref_product:private] => Array ( [0] => en [1] => nl ) [_customer_id:ref_product:private] => [_data:ref_product:private] => Array ( ) ) ref_product Object ( [_id:ref_product:private] => 10047 [_currency_code:ref_product:private] => EUR [_language_codes:ref_product:private] => Array ( [0] => fr [1] => nl ) [_customer_id:ref_product:private] => [_data:ref_product:private] => Array ( ) ) ref_product Object ( [_id:ref_product:private] => 10047 [_currency_code:ref_product:private] => EUR [_language_codes:ref_product:private] => Array ( [0] => es [1] => nl ) [_customer_id:ref_product:private] => [_data:ref_product:private] => Array ( ) ) ref_product Object ( [_id:ref_product:private] => 10047 [_currency_code:ref_product:private] => EUR [_language_codes:ref_product:private] => Array ( [0] => nl ) [_customer_id:ref_product:private] => [_data:ref_product:private] => Array ( ) )
tim Founder Från Sweden Medlem sedan maj 2013 tim 6 apr. 2018 14:34 "Polyester 305 cm hoog"Looks like it's working.