Jump to content

Jonojamesmac

Members
  • Content count

    145
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by Jonojamesmac


  1. May I ask in this thread? Since I've got the same problem.

     

    This is my website: http://www.dollwhy.com/shop/

     

    The "Add to Cart" button in product_info.php is not working. When I clicked 'add to cart', it brought me to empty cart (it worked fine with AppServ in my computer, but when I upload, it doesn't work. I don't know why).

    Though in product_listing.php the 'buy now' button is working fine.

     

    This is the code I added to product_info.php (with mod),

     

    <!--Begin Sold Out-->
    <?php
       If ($product_info['products_quantity']>0) {
       $submit_button = tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART);
    	} else { 
       $submit_button = tep_image(DIR_WS_LANGUAGES . $language . '/images/buttons/button_out_of_stock.gif', 'Sold Out', IMAGE_BUTTON_SOLD_OUT);
     }
    ?>
                   <td colspan="2" align="center"><?php echo tep_draw_hidden_field('products_id', $product_info['products_id']) . $submit_button; ?></td>
    <!--End Sold Out--></td>

     

    Could anyone help? Thank you in advance.

     

    Try and replace

    <?php echo tep_draw_hidden_field('products_id', $product_info['products_id']) . $submit_button; ?>

    with

    <a href="<? echo tep_href_link("products_info.php","action=buy_now&products_id=".$p_id).'">'.$submit_button; ?></a>


  2. Hello,

     

    I added a few contributions, but I can't get it displayed correctly and the link are broken.

     

    For example, when I click on the BOX_CATALOG_PRODUCTS_EXTRA_FIELDS I got the link "http://localhost/ishop/osc/admin/FILENAME_PRODUCTS_EXTRA_FIELDS" and an error message "Object not found"

     

    This what I have

     

    '<a href="' . tep_href_link(FILENAME_PRODUCTS_EXTRA_FIELDS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CATALOG_PRODUCTS_EXTRA_FIELDS . '</a><br>'. // Extra Fields contrib

     

    Catalog

    Categories/Products

    Products Attributes

    Manufacturers

    Reviews

    Specials

    Products Expected

    BOX_CATALOG_DISCOUNT_COUPONS

    BOX_CATALOG_FEATURED_PRODUCTS

    BOX_CATALOG_PRODUCTS_EXTRA_FIELDS

    BOX_CATALOG_MORE_CATEGORIES

    BOX_CATALOG_AZERTY_PRICE_UPDATE

     

    Thank you very much

    You have missed a step in your installation instructions which mentions adding code into filenames.php and the english.php language file. Double check you've done everything.


  3. in product_listing.php

    change

    if($products_new['products_quantity'] <= 0 || $products_new['products_status']==0) {

    to

    if($listing['products_quantity'] <= 0 || $listing['products_status']==0) {

     

    This should change all your listings except possibly your front page, what are the products that appear on the frontpage? New? Upcoming? or random?


  4. add the bits on this line

    $select_str = "select distinct " . $select_column_list . " m.manufacturers_id, p.products_id, pd.products_name, p.products_price, p.products_tax_class_id, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status, s.specials_new_products_price, p.products_price) as final_price ";

    you already made the other changes in product_listing.php if not, find includes/modules/product_listing.php and make the other changes there.

     

    The variable in product_listing.php is $listing['products_status'] and $listing['products_quantity']

     

    For your index file, paste it here and let me see.


  5. Try changing

    if($product_info['products_quantity'] <= 0 || $product_info['products_status']==0) {

    to

    if($products_new['products_quantity'] <= 0 || $products_new['products_status']==0)  {

     

    you will also need to add the code to pull the info its basing the button off from the database

     

    change

     $products_new_query_raw = "select p.products_id, pd.products_name, p.products_image, p.products_price, p.products_tax_class_id, p.products_date_added, m.manufacturers_name from " . TABLE_PRODUCTS . " p left join " . TABLE_MANUFACTURERS . " m on (p.manufacturers_id = m.manufacturers_id), " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = pd.products_id and pd.language_id = '" . (int)$languages_id . "' order by p.products_date_added DESC, pd.products_name";

    to

     $products_new_query_raw = "select p.products_id, p.products_status, p.products_quantity, pd.products_name, p.products_image, p.products_price, p.products_tax_class_id, p.products_date_added, m.manufacturers_name from " . TABLE_PRODUCTS . " p left join " . TABLE_MANUFACTURERS . " m on (p.manufacturers_id = m.manufacturers_id), " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = pd.products_id and pd.language_id = '" . (int)$languages_id . "' order by p.products_date_added DESC, pd.products_name";

     

    all that this is doing is adding p.products_status, p.products_quantity to the query.

     

    Just a hunch, may or may not fix it


  6. These instructions in the instructions notepad file included in the package should fix those.

     

    3b. Open admin/includes/languages/english.php
    
    Find:
    
    ?>
    
    Add Before:
    
    //Defect Manager 1.3
    define('BOX_HEADING_DEFECTS', 'Defect Manager');
    define('BOX_DEFECTS', 'Defects');
    define('BOX_DEFECTS_PRIORITY', 'Defects Priority');
    define('BOX_DEFECTS_SEVERITY', 'Defects Severity');
    define('BOX_DEFECTS_STATUS', 'Defects Status');
    define('BOX_DEFECTS_USERS', 'Defects Users');
    define('IMAGE_NEW_DEFECT', 'New Defect');
    define('IMAGE_NEW_DEFECT_PRIORITY', 'New Priority');
    define('IMAGE_NEW_DEFECT_SEVERITY', 'New Severity');
    define('IMAGE_NEW_DEFECT_STATUS', 'New Status');
    define('IMAGE_NEW_DEFECT_USER', 'New User');
    define('TEXT_DISPLAY_NUMBER_OF_DEFECTS', 'Displaying <b>%d</b> to <b>%d</b> (of <b>%d</b> defects)');
    define('TEXT_DISPLAY_NUMBER_OF_DEFECTS_PRIORITY', 'Displaying <b>%d</b> to <b>%d</b> (of <b>%d</b> priorities)');
    define('TEXT_DISPLAY_NUMBER_OF_DEFECTS_SEVERITY', 'Displaying <b>%d</b> to <b>%d</b> (of <b>%d</b> severities)');
    define('TEXT_DISPLAY_NUMBER_OF_DEFECTS_STATUS', 'Displaying <b>%d</b> to <b>%d</b> (of <b>%d</b> statuses)');
    define('TEXT_DISPLAY_NUMBER_OF_DEFECTS_USERS', 'Displaying <b>%d</b> to <b>%d</b> (of <b>%d</b> users)');
    //Defect Manager 1.3
    
    
    
    3c. Open admin/includes/filenames.php
    
    Find:
    
    ?>
    
    Add Before:
    
    //Defect Manager 1.3
     define('FILENAME_DEFECTS', 'defects.php');
     define('FILENAME_DEFECTS_USERS', 'defects_users.php');
     define('FILENAME_DEFECTS_PRIORITY', 'defects_priority.php');
     define('FILENAME_DEFECTS_SEVERITY', 'defects_severity.php');
     define('FILENAME_DEFECTS_STATUS', 'defects_status.php');
     define('FILENAME_DEFECTS_CSV', 'defects_csv.php');  
    //Defect Manager 1.3


  7. Most contributions contain installation instructions, head over to contributions page unzip it and follow the instructions included.

     

    I'm afraid that for someone to do it for you would require access to your files and possibly server. Possibly a cost may be involved.

×