Jump to content
xt:Commerce Community Forum

Lagerbestand in Email


Tschaenssen

Recommended Posts

am einfachsten mit inline-PHP im foreach über die Positionen:

{assign var=products_id value=$order_values.products_id}

{php}

global $db;

$products_id = $this->get_template_vars('products_id');

$rs = $db->Execute("SELECT products_quantity FROM ".TABLE_PRODUCTS." WHERE products_id = '".$products_id."'");

$stock = $rs->fields['products_quantity'];

$this->assign('stock',$stock);

{/php}

danach steht {$stock} als tatsächlicher Lagerbestand zur Verfügung

Grüsse

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
  • Create New...