Forums / Templates, Stylesheets, Page Layout / posm field on shopping cart page

posm field on shopping cart page

Views: 1,460

Results 1 to 2 of 2
7 Nov 2025, 9:36 PM
#1
jimmie avatar

jimmie

Totally Zenned

Join Date:
Jan 2013
Location:
New Port Richey, Florida
Posts:
971
Plugin Contributions:
0

posm field on shopping cart page

zen 2.10
php8.3in
posm
how can i move the model number field that posm adds to the product name
down to here ```
echo $value['products_options_name'] . TEXT_OPTION_DIVIDER . nl2br($value['products_options_values_name']);

 i would like it to show up here instead?
8 Nov 2025, 11:00 AM
#2
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,119
Plugin Contributions:
56

Re: posm field on shopping cart page

jimmie:

zen 2.10
php8.3in
posm
how can i move the model number field that posm adds to the product name
down to here ```
echo $value['products_options_name'] . TEXT_OPTION_DIVIDER . nl2br($value['products_options_values_name']);

>  i would like it to show up here instead?
You'll need to

a) Set ***Configuration :: Options' Stock Manager :: Shopping Cart: Display Model Numbers*** to false.
b) Modify that line in your template's tpl_shopping_cart_default.php to read:

echo $value['products_options_name'] . TEXT_OPTION_DIVIDER . nl2br($value['products_options_values_name']) [B]. ' ' . ($product['posModel'] ?? '')[/B];


Please note that the model value *will repeat for every attribute associated with the product* (which is why the default display includes the model with the product's name).  ***Use only if you have a single managed attribute for every product in the site.***