Esempio n. 1
0
 function advanced_stock_get_buy_now_button($products_id, $the_button, $additional_link = false)
 {
     return advanced_stock_get_buy_now_button($products_id, $the_button, $additional_link);
 }
<?php 
// -> zen_smartphone: dl dt dd ではなく、ul li で。
//$the_button = '';
//$the_button .= '<dt>'.PRODUCTS_ORDER_QTY.'</dt>'."\n";
//$the_button .= '<dd><input type="text" name="cart_quantity" value="' . (zen_get_buy_now_qty($_GET['products_id'])) . '" maxlength="6" size="4" />' .PRODUCTS_ORDER_QTY_TEXT.'<br />'. zen_get_products_quantity_min_units_display((int)$_GET['products_id']) . '' . zen_draw_hidden_field('products_id', (int)$_GET['products_id']).'</dd>'."\n".'</dl>'."\n";
$the_button = '<li>';
$the_button .= '<div>' . PRODUCTS_ORDER_QTY . '</div>' . "\n";
$the_button .= '<input type="text" name="cart_quantity" value="' . zen_get_buy_now_qty($_GET['products_id']) . '" maxlength="6" size="4" />' . PRODUCTS_ORDER_QTY_TEXT . '<br />' . zen_get_products_quantity_min_units_display((int) $_GET['products_id']) . '' . zen_draw_hidden_field('products_id', (int) $_GET['products_id']) . '' . "\n";
$the_button .= '' . "\n";
$in_cart_button_html = '<div class="cartAdd">' . '<div class="price">' . ((zen_has_product_attributes_values((int) $_GET['products_id']) and $flag_show_product_info_starting_at == 1) ? TEXT_BASE_PRICE : '') . zen_get_products_display_price((int) $_GET['products_id']) . '</div>' . "\n" . zen_image_submit(BUTTON_IMAGE_IN_CART, BUTTON_IN_CART_ALT, 'class="imgover"', 'submit') . '</div>';
$in_cart_button_html .= '</li>' . "\n";
// <- zen_smartphone: dl dt dd ではなく、ul li で。
$the_button .= $in_cart_button_html;
if (MODULE_ADDON_MODULES_ADVANCED_STOCK_STATUS == 'true') {
    $display_button = advanced_stock_get_buy_now_button($_GET['products_id'], $the_button);
} else {
    $display_button = zen_get_buy_now_button($_GET['products_id'], $the_button);
}
?>

<?php 
if ($display_qty != '' or $display_button != '') {
    echo $display_button;
}
// display qty and button
?>

<?php 
// -> zen_smartphone: div でなく ul li で。
/*