Originally Posted by
RK123
So if the currency dropdown menu is close to the add to cart button ( as shown in the screenshot attached in my first post) , the customers will know that they can choose the currency of their choice.
So this is what I want.
There are so many reasons not to do this. Even the big shops have it in the header.. Changing country, currencies, and language is a big deal across the entire site...
But to each there own... as pointed out forms can not be nested with out a hack or script.. but form start/stop can be moved providing you think of what's affected when you start moving things around. The product page really don't have anything requiring from action above the product title. So if you move the form start below the product title then create the currencies dropdown form above it... as below.. in red..
Code:
<div id="prod-info-top">
<!--bof Product Name-->
<h1 id="productName" class="productGeneral"><?php echo $products_name; ?></h1>
<!--eof Product Name-->
<div id="currency_product" class="topBox forward">
<?php echo zen_draw_form('currencies_form_header', zen_href_link(basename(preg_replace('/.php/','', $PHP_SELF)), '', $request_type, false), 'get');
$currencies_array = array();
foreach($currencies->currencies as $key => $value) {
$currencies_array[] = array('id' => $key, 'text' => $value['title']);
}
$hidden_get_variables = zen_post_all_get_params('currency');
echo 'Currencies: ' . zen_draw_pull_down_menu('currency', $currencies_array, $_SESSION['currency'], 'onchange="this.form.submit();" class="header"') . $hidden_get_variables . zen_hide_session_id(); ?>
</form>
</div>
<!--bof Form start-->
<?php echo zen_draw_form('cart_quantity', zen_href_link(zen_get_info_page($_GET['products_id']), zen_get_all_get_params(array('action')) . 'action=add_product', $request_type), 'post', 'enctype="multipart/form-data"') . "\n"; ?>
<!--eof Form start-->
<div id="pinfo-left" class="group">
<!--bof Main Product Image -->
That's as close as you can get it without using CSS to place it within the price block... which I really don't have time to get into..
Bookmarks