Jump to content

ToyStore

Members
  • Content count

    28
  • Joined

  • Last visited

Everything posted by ToyStore

  1. ToyStore

    [Contribution] Availability

    Sorry you may not have class="maincol" so just change the first two to class="main"
  2. ToyStore

    [Contribution] Availability

    Hi all, I have this installed on my test site, and it is working on the catalog side of things. If anyone wants to see this contrib in action: http://www.gofuntoys.com/svns/test-shop/pr...ane-desk-2.html I wanted to post some code from my admin/categories.php file. I am not completely sure if this fix will work well in osC 2.2, but I was having issues where my admin screen was out of whack. The code for this section on my site is: <tr> <td class="maincol"><?php echo TEXT_PRODUCTS_QUANTITY; ?></td> <td class="maincol"><?php echo tep_draw_separator('pixel_trans.gif', '24', '15') . ' ' . tep_draw_input_field('products_quantity', $pInfo->products_quantity); ?></td> <tr> <td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td> </tr> <?php // BOF: Availability $availability_query = tep_db_query("select * from availability where language_id = '" . $languages_id . "'"); $availability_array = array(); while ($availability_tmp = tep_db_fetch_array($availability_query)) { $availability_array[] = array( 'id' => $availability_tmp['availability_id'], 'text' => $availability_tmp['availability_name']); }?> <td class="main"><?php echo TEXT_AVAIL1;?></td> <td class="main"><?php echo tep_draw_separator('pixel_trans.gif', '24', '15') . ' ' . tep_draw_pull_down_menu('availability_id_in_stock', $availability_array, (!empty($pInfo->availability_id_in_stock)?$pInfo->availability_id_in_stock:1)); ?></td> </tr> <tr> <td class="main"><?php echo TEXT_AVAIL2;?></td> <td class="main"><?php echo tep_draw_separator('pixel_trans.gif', '24', '15') . ' ' . tep_draw_pull_down_menu('availability_id_out_of_stock', $availability_array, (!empty($pInfo->availability_id_out_of_stock)?$pInfo->availability_id_out_of_stock:2)) . ' <a href="' . tep_href_link(FILENAME_AVAILABILITY_OPTIONS) . '">'.TEXT_MANAGE_AVAIL_OPTIONS.'</a>'; ?></td> // EOF: Availability </td> </tr> I added the TEXT_AVAIL defines to my product_info.php english file. Not sure if this is useful to anyone since I have not tried this on my osC 2 test site, just my ecjc site which is a modified osC 2.2 RC1 for Joomla. Also to the original author, thanks for writing this bit of code. Do you think it would be hard to add images instead of text? I think I might try to go that route with this in the next few weeks. Also, I needed to install the sql manually, will I miss anything by not running the installer? Everything seems fine so I am sure it is, but I just wanted to touch base on it.
  3. ToyStore

    Multi_Vendor_Shipping new thread

    Hi, I just did the code upgrades for osC 2.2 RC1 on my shop, everything is working except for sales tax. Has anyone seen this with MVS on an upgrade like this. It is not a true RC1 since it has the old admin. If I set an item to non-vendor though it still does not calculate the tax. So do you think I need to change something in MVS, or did I mess something else up?
  4. ToyStore

    Review Approval System

    Question: My reviews are not posting to the admin section, what should I check first?
  5. ToyStore

    Google Checkout Level 2

    Hello, my server checks out ok, but I am getting this error when entering the sql file. ************* Error SQL query: INSERT INTO `configuration_group` ( `configuration_group_id` , `configuration_group_title` , `configuration_group_description` , `sort_order` , `visible` ) VALUES ( 300, 'Google Checkout', 'Set up values for Google Checkout', 22, 1 ) ; MySQL said: Documentation #1062 - Duplicate entry '300' for key 1 ****************** Anyone have any ideas? Thanks in advance!
×