Jump to content

huste511

Members
  • Content count

    2
  • Joined

  • Last visited

Posts posted by huste511


  1. Hi!

    i used QPB in my old 2.2RC2 store for more then 10 years.
    Now in want to install QPB in the latest 2.3.4.1 oscommerce and have some trouble. ;-(

    The Install instructions says:
     

    catalog/includes/modules/product_listing.php
    Find (around line 109):

     

    if (tep_not_null($listing['specials_new_products_price'])) {
                  $lc_text = '&nbsp;<s>' .  $currencies->display_price($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</s>&nbsp;&nbsp;<span class="productSpecialPrice">' . $currencies->display_price($listing['specials_new_products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</span>&nbsp;';
                } else {
                  $lc_text = '&nbsp;' . $currencies->display_price($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '&nbsp;';
                }

    replace with:

                $pf->parse($listing);
                $lc_text = $pf->getPriceStringShort();

    but in the new store is this place is only this:

                if (tep_not_null($listing['specials_new_products_price'])) {
                  $prod_list_contents .= '        <td align="right"><del>' .  $currencies->display_price($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</del>&nbsp;&nbsp;<span class="productSpecialPrice">' . $currencies->display_price($listing['specials_new_products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</span></td>';
                } else {
                  $prod_list_contents .= '        <td align="right">' . $currencies->display_price($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</td>';
                }

    It looks not right to replace this 1:1. E.g. the variable lc_text is complete missing.

     

     

    And there is a 2nd place whre i stuck:

     

    Open: catalog/product_info.php
    Find (around line 210):

    <td class="main" align="right"><?php echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART); ?></td>

    replace with:

                    <td class="main" align="right">
                      <table border="0" align="right">
                        <tr><td align="center">
                          <?php echo TEXT_ENTER_QUANTITY . ":" . tep_draw_input_field('cart_quantity', $pf->adjustQty(1), 'size="6"'); ?>
                        </td></tr>
                        <tr><td align="center">
                          <?php echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART); ?>
                        </td></tr>
    	          </table>
                    </td>

    but in the new store is this place is only this:

    <span class="buttonAction"><?php echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_draw_button(IMAGE_BUTTON_IN_CART, 'cart', null, 'primary'); ?></span>

     

    I have no skills in php ... only basics in html.

    Can anyone help?

     

    Thanks!

×