Jump to content

Ariffshah

Members
  • Content count

    67
  • Joined

  • Last visited

3 Followers

About Ariffshah

  • Birthday 09/26/1973

Profile Information

  • Real Name
    Noor Ariffshah
  • Gender
    Male
  • Location
    Kuala Lumpur
  1. Hi all, I think this has been covered in the forum, maybe i can't find it. I have installed Separate Pricing per Customer and now trying to add the script for MRSP Listing. At the moment having problem combining the catalog/product_info.php as follows: 7b) Find: if ($new_price = tep_get_products_special_price($product_info['products_id'])) { $products_price = '<s>' . $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) . '</s> <span class="productSpecialPrice">' . $currencies->display_price($new_price, tep_get_tax_rate($product_info['products_tax_class_id'])) . '</span>'; } else { $products_price = $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id'])); } and change it to read: $products_price = '<table class="" align="right" border="0" width="100%" cellspacing="0" cellpadding="0">'; $new_price = tep_get_products_special_price($product_info['products_id']); if ($product_info['products_msrp'] > $product_info['products_price']) $products_price .= '<tr class="PriceListBIG"><td align="right">' . TEXT_PRODUCTS_MSRP . $currencies->display_price($product_info['products_msrp'], tep_get_tax_rate($product_info['products_tax_class_id'])) . '</td></tr>'; if ($new_price != '') $products_price .= '<tr class="usualpriceBIG"><td align="right">'. TEXT_PRODUCTS_USUALPRICE . ''; else $products_price .= '<tr class="pricenowBIG"><td align="right">'. TEXT_PRODUCTS_OUR_PRICE . ''; $products_price .= $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) . '</td></tr>'; if ($new_price != '') {$products_price .= '<tr class="pricenowBIG"><td align="right">' . TEXT_PRODUCTS_PRICENOW . $currencies->display_price($new_price, tep_get_tax_rate($product_info['products_tax_class_id'])) . '</td></tr>';} if ($product_info['products_msrp'] > $product_info['products_price']) {if ($new_price != '') {$products_price .= '<tr class="savingBIG"><td align="right" >' . TEXT_PRODUCTS_SAVINGS_RRP . $currencies->display_price(($product_info['products_msrp'] - $new_price), tep_get_tax_rate($product_info['products_tax_class_id'])) . ' ('. number_format(100 - (($new_price / $product_info['products_msrp']) * 100)) . '%)</td></tr>';} else {$products_price .= '<tr class="savingBIG"><td ="right" >' . TEXT_PRODUCTS_SAVINGS_RRP . $currencies->display_price(($product_info['products_msrp'] - $product_info['products_price']), tep_get_tax_rate($product_info['products_tax_class_id'])) . ' ('. number_format(100 - (($product_info['products_price'] / $product_info['products_msrp']) * 100)) . '%)</td></tr>';}} else {if ($new_price != '') {$products_price .= '<tr class="savingBIG"><td align="right" >' . TEXT_PRODUCTS_SAVINGS_RRP . $currencies->display_price(($product_info['products_price'] - $new_price), tep_get_tax_rate($product_info['products_tax_class_id'])) . ' ('. number_format(100 - (($new_price / $product_info['products_price']) * 100)) . '%)</td></tr>';}} $products_price .= '</table>'; and my code is: if ($new_price = tep_get_products_special_price($product_info['products_id'])) { // BOF Separate Pricing per Customer if ($customer_group_id > 0) { // only need to check products_groups if customer is not retail $scustomer_group_price_query = tep_db_query("select customers_group_price from " . TABLE_PRODUCTS_GROUPS . " where products_id = '" . (int)$HTTP_GET_VARS['products_id']. "' and customers_group_id = '" . $customer_group_id . "'"); if ($scustomer_group_price = tep_db_fetch_array($scustomer_group_price_query)) { $product_info['products_price']= $scustomer_group_price['customers_group_price']; } } // end if ($customer_group_id > 0) // EOF Separate Pricing per Customer $products_price = '<s>' . $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) . '</s> <span class="productSpecialPrice">' . $currencies->display_price($new_price, tep_get_tax_rate($product_info['products_tax_class_id'])) . '</span>'; } else { // BOF Separate Pricing per Customer if ($customer_group_id > 0) { // only need to check products_groups if customer is not retail $scustomer_group_price_query = tep_db_query("select customers_group_price from " . TABLE_PRODUCTS_GROUPS . " where products_id = '" . (int)$HTTP_GET_VARS['products_id']. "' and customers_group_id = '" . $customer_group_id . "'"); if ($scustomer_group_price = tep_db_fetch_array($scustomer_group_price_query)) { $product_info['products_price']= $scustomer_group_price['customers_group_price']; } } // end if ($customer_group_id > 0) // EOF Separate Pricing per Customer $products_price = $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id'])); } Need help how to combine both code. Thank you in advance for the help. Ariff
  2. Happy New Year 2011 to all osCommerce developer out there.

  3. When I enter to the Shopping Cart, it displays some products which I had not added to cart.

    Can any one help me out to solve this one out.

    Thanks in advance

    Regards

    Arun

  4. Ariffshah

    Header Tags SEO

    Alright Jack, Thank you. will compare the original file & in the server. Regards Ariff
  5. Ariffshah

    Header Tags SEO

    Hi Jack, Just quick question. How about this. When i clicked at any of the social bookmark image, e.g facebook, the link direct me to the respective social website. But my domain link appear something like this: http://http//xxxxx.com/product_info.php. It shows double http//. Maybe my mistake installing this wonderful contribution. Do you have any idea how to fix this? Regards Ariff
  6. Ariffshah

    Newsletter & Subscribtion for MS2

    I've figure it out at last... I deleted the customer in admin and the problem disappeared.. I think the logic is database did not recognize the customer name.
  7. Ariffshah

    Newsletter & Subscribtion for MS2

    Dear all, I do not know if i'm posting at the right place. I found the solution for A Fix for this MySQL v 4.1.xx problem and tried to fix the 1064 error received at Newsletter Update Manager. Error is still there. I did install the Newsletter & Subscribers v055 version before. My Hosting provider just upgrade their database to MySQL 5.0 and PHP 5.2 recently. Now received error code as below 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'name', 'name', '1' , '', 'English', 'f', 'Text', 'CUSTOMERS', now(), now' at line 1 insert into subscribers (subscribers_id,customers_id, subscribers_email_address, subscribers_firstname, subscribers_lastname, customers_newsletter, subscribers_blacklist, language, subscribers_gender, subscribers_email_type, source_import, entry_date, date_account_created) values ('', '1042', 'name@yahoo.com', 'name' name', 'name', '1' , '', 'English', 'f', 'Text', 'CUSTOMERS', now(), now() ) [TEP STOP] I believe the problem start with the database upgrading or after I try to delete something data in database (correct me if I'm wrong). Anyone know a fix for this? Anyway, found a good bulk email contribution which can program your newsletter for small to medium size mailing lists Cheers Ariff
  8. Ariffshah

    Store Mode (Open | Closed | Maintenance)

    Hi, I think I have done a mistake by set the Maintenance Mode: Testing to true. Now i could not enter admin ya.. where can i adjust the script to enable back my shop to normal?
  9. Hi all, anyone who having this problem and solved between contribution qp_autoinstaller_2.14_4 and separate_price_422? Appreciate if you can share with me. The dropdown price is fine when a retail customer view my product_info page, but when wholesaler view it the dropdown price still shows the retail price. Only when they add items to the shopping cart and the wholeprice shows in shopping_cart.php Hope you can share with me how to fix this. Thanks Ariff
  10. Ariffshah

    ULTIMATE Seo Urls 5 - by FWR Media

    any idea what is going wrong? Tried 3 times installing this upgrades and failed. Further more I seek little help to combine this script with the modified Separate Pricing per Customer installed earlier. catalog/includes/modules/product_listing.php 5- Find ... $lc_text = '<a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing['products_id']) . '">' . tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) . '</a> '; Replace with ... $lc_text = '<a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action', 'products_id')) . 'action=buy_now&products_id=' . $listing['products_id']) . '">' . tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) . '</a> '; and mine was $lc_text = '<a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing[$x]['products_id']) . '">' . tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) . '</a> '; // EOF Separate Pricing per Customer Thank you in advance for this help. Ariff
  11. Ariffshah

    Seperate Pricing Per Customer v3.5

    Thank you Jan for replying. At the moment I'm using Beyond Compare program to edit the PHP code. I will check with the link you provide and hope will get the program that can detect any parse error mistake being done while installing this wonderful contribution. Cheers.
  12. there is missing curly bracket in my php coding which i don't know where is it

  13. Ariffshah

    Seperate Pricing Per Customer v3.5

    Hi all, I hope any of you guys can share with me how to edit the parse error coding i received while installing the Separate Pricing Per Customer 4.2.2 for RC2a for my version 2.2 rc2. Parse error: syntax error, unexpected $end in /home/xxxx/public_html/test/admin/customers.php on line 1370 and i list out the code from 1343 to 1370 if ( (tep_not_null($heading)) && (tep_not_null($contents)) ) { echo ' <td width="25%" valign="top">' . "\n"; $box = new box; echo $box->infoBox($heading, $contents); echo ' </td>' . "\n"; } ?> </tr> </table></td> </tr> <?php } ?> </table></td> <!-- body_text_eof //--> </tr> </table> <!-- body_eof //--> <!-- footer //--> <?php require(DIR_WS_INCLUDES . 'footer.php'); ?> <!-- footer_eof //--> <br> </body> </html> <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?> I compared the code with my original and it look the same. I have no knowledge in PHP coding and like to seek help to solve this error before I continue to install the rest of the contribution code. Thank you and I look forward for your help.
  14. Hi all, anyone have similar problem like me in installing the version 2.0 contribution. Would like to know how you solved the problem like mine? The problem is there is no recently viewed box at the bottom and in the right column. I have checked in the adminstator/configuration/recently viewed and set all to true. there is a link to recently_viewed.php at the upper of my column right box. However, after clicked at few products and went to see the product that I seen before, it only shows Currently I am using the oscommerce version 2.2 MS2 and I'm using the version 2.0 contribution. Hope you don't mind share with me how you solved the problem as I really have no idea where to start now. Thank you.
×