Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

I need a little help on a drop down menu from admin/specials.php


urbieta

Recommended Posts

Posted

I downloaded oscommerce with b2bsuite installed already from caneblu.com

 

Since this part is already in original osc I thought Id give it a shot here ;)

 

This is the code that will allow admin to select a product on special

 

echo (isset($sInfo->products_name)) ? $sInfo->products_name . ' <small>(' . $currencies->format($sInfo->products_price) . ')</small>' : tep_draw_products_pull_down('products_id', 'style="font-size:10px"', $specials_array); echo tep_draw_hidden_field('products_price', (isset($sInfo->products_price) ? $sInfo->products_price : ''));

 

the result of the code shows

 

 

<select name="products_id" style="font-size:10px">

<option value="855">flower ($999.00)</option>

<option value="391">dog ($299.00)</option>

<option value="584">cat ($369.00)</option>

</select>

 

But what I would like to change is to show the product's model number within the list:

 

<select name="products_id" style="font-size:10px">

<option value="855">qwers flower ($999.00)</option>

<option value="391">dsfge dog ($299.00)</option>

<option value="584">dfgdf cat ($369.00)</option>

</select>

 

I tried adding . $sInfo->products_price to all parts with no success, the model number will not appear no matter how I add it, am I missing something?

 

thanks! :)

Posted

Answering myself

 

the code to edit is in admin/includes/functions/general.php

 

function tep_draw_products_pull_down

 

this is odd, this means that my change will affect all related menus

 

;)

Archived

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

×
×
  • Create New...