Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

latincosmo

Pioneers
  • Posts

    17
  • Joined

  • Last visited

Everything posted by latincosmo

  1. Tag Description as Short Description in product listing. Hello All, I have installed in my site Header Tags SEO v3.1.8 and table products_description has a field "products_head_desc_tag" so I thought it would be I great idea to use that field as the short description to be used in product listing. This way in product listing pages, you have now your product name/title and a short description just below it. After reading the installation of Product Description 1.3 this is what I did: Opened catalog/index.php and added "pd.products_head_desc_tag, " after $listing_sql = "select " . $select_column_list . " p.products_id, so all your lines that starts now with: $listing_sql = "select " . $select_column_list . " p.products_id, pd.products_head_desc_tag, ... and the rest of the query continues with no more changes. Then opened catalog/includes/modules/product_listing.php and replace this code: case 'PRODUCT_LIST_NAME': $lc_align = ''; if (isset($HTTP_GET_VARS['manufacturers_id'])) { $lc_text = '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'manufacturers_id=' . $HTTP_GET_VARS['manufacturers_id'] . '&products_id=' . $listing['products_id']) . '">' . $listing['products_name'] . '</a>'; } else { $lc_text = ' <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_id']) . '">' . $listing['products_name'] . '</a> '; } break; with this: case 'PRODUCT_LIST_NAME': $lc_align = ''; if (isset($HTTP_GET_VARS['manufacturers_id'])) { $lc_text = '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'manufacturers_id=' . $HTTP_GET_VARS['manufacturers_id'] . '&products_id=' . $listing['products_id']) . '"><b>' . $listing['products_name'] . '</a></b><br>' . $listing['products_head_desc_tag'] . '</b>'; } else { $lc_text = '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_id']) . '"><b>' . $listing['products_name'] . '</a></b><br>' . $listing['products_head_desc_tag'] . '</b>';} break; All credits to developer of Header Tags SEO and Product Description 1.3 contribs Enjoy!
  2. Tag Description as Short Description in product listing. Hello All, I was looking for a contribution like this one. I have also installed in my site Header Tags SEO v3.1.8 and table products_description has a field "products_head_desc_tag" so I thought it would be I great idea to use that field as the short description to be used in product listing. After reading the installation of Product Description 1.3 this is what I did: Opened catalog/index.php and added "pd.products_head_desc_tag, " after $listing_sql = "select " . $select_column_list . " p.products_id, so all your lines that starts now with: $listing_sql = "select " . $select_column_list . " p.products_id, pd.products_head_desc_tag, ... and the rest of the query continues with no more changes. Then opened catalog/includes/modules/product_listing.php and replace this code: case 'PRODUCT_LIST_NAME': $lc_align = ''; if (isset($HTTP_GET_VARS['manufacturers_id'])) { $lc_text = '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'manufacturers_id=' . $HTTP_GET_VARS['manufacturers_id'] . '&products_id=' . $listing['products_id']) . '">' . $listing['products_name'] . '</a>'; } else { $lc_text = ' <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_id']) . '">' . $listing['products_name'] . '</a> '; } break; with this: case 'PRODUCT_LIST_NAME': $lc_align = ''; if (isset($HTTP_GET_VARS['manufacturers_id'])) { $lc_text = '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'manufacturers_id=' . $HTTP_GET_VARS['manufacturers_id'] . '&products_id=' . $listing['products_id']) . '"><b>' . $listing['products_name'] . '</a></b><br>' . $listing['products_head_desc_tag'] . '</b>'; } else { $lc_text = '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_id']) . '"><b>' . $listing['products_name'] . '</a></b><br>' . $listing['products_head_desc_tag'] . '</b>';} break; All credits to developer of Header Tags SEO and Product Description contribs Enjoy!
  3. v1.5 Multilanguage?? Have anyone managed to install this contrib in two languages? I have english and spanish running in my site. The spanish version of the share button should read "Compartir" and some more changes has to be done to the email page. How to do that? thanks for reading :)
  4. Yahoo and MSN sitemaps? Hello Jack, first of all, thank you and Chemo for this great contribution! I installed it today with no hassles. Regarding Yahoo and MSN search engines, I have only seen one yahoo contribution with almost no questions in its forum and nothing about MSN. Is it because those engines rely on the google version? or they do not use sitemaps as much as google? What do you suggest to have my site properly crawl by these 2? My site is new and have not sell anything yet so I have the time now to maintain manually sitemaps if necessary. best regards,
  5. Jack, thank you. I finally was able to make it work. This is the part of sitemonitor_functions.php that cause me the problem: function WriteFile($filename, $files) { $fpOut = fopen($filename, "w"); if (! $fpOut) { echo 'Failed to open file '.$filename; exit; } because sitemonitor_reference.php did not exist and the page had not permissions to write into my admin folder. So I changed the permissions on the admin folder to 777, run the Update to create the reference file for the first time and then change back the permissions on the folder and sitemonitor files to 755. Now it's working great. Hope this helps someone else. Thanks again for this great contribution.
  6. I changed group and user of sitemonitor_functions.php from root to apache which is the user and group the httpd daemon runs on and I still have the same error. Permissions of sitemonitor_functions.php and functions folder were set to 777. httpd were restarted. php.ini shows safe_mode = off Again same error: [Tue Nov 03 07:26:25 2009] [error] [client 65.74.209.129] PHP Warning: fopen(sitemonitor_reference.php) [<a href='function.fopen'>f unction.fopen</a>]: failed to open stream: Permission denied in /var/www/html/catalog/admin/includes/functions/sitemonitor_f unctions.php on line 308, referer: http://www.mysite.com/admin/sitemonitor_admin.php
  7. Hi! Thank you for your super fast response! We'll i am the only one who administer the server. It runs on a fedora machine. I uploaded the files from my windows machine using WinSCP and connect to the server via putty. This is the directory listing: [root@web functions]# ls -l total 168 -rw-r--r-- 1 root root 6966 2009-02-22 09:39 compatibility.php -rw-r--r-- 1 root root 4312 2009-02-22 09:39 database.php -rw-r--r-- 1 root root 53681 2009-06-24 23:05 general.php -rw-r--r-- 1 root root 24704 2009-02-22 09:39 html_graphs.php -rw-r--r-- 1 root root 12826 2009-02-22 09:39 html_output.php -rw-r--r-- 1 root root 672 2009-02-22 09:39 languages.php -rw-r--r-- 1 root root 1027 2009-02-22 09:39 localization.php -rw-r--r-- 1 root root 983 2009-02-22 09:39 password_funcs.php -rw-r--r-- 1 root root 4733 2009-02-22 09:39 sessions.php -rwxr-xr-x 1 root root 21275 2009-09-26 21:57 sitemonitor_functions.php -rw-r--r-- 1 root root 4038 2009-02-22 09:39 validations.php [root@web functions]#
  8. I get "Failed to open file sitemonitor_reference.php" after clicking on the top update button of the admin page as indicated by the step 6 of the readme file. My error_log shows: PHP Warning: fopen(sitemonitor_reference.php) [<a href='function.fopen'>f unction.fopen</a>]: failed to open stream: Permission denied in /var/www/html/catalog/myadmin/includes/functions/sitemonitor_f unctions.php on line 308, referer: http://www.mysite.com/myadmin/sitemonitor_admin.php I tried setting sitemonitor_functions.php permissions to 777 but nothing changed. Any clue? thank you all for reading my post
  9. Hi all, I know this is a newbie question, i was searching the forum and couldn't find the answer. I installed os commerce and is working ok so far. Now I want to install the UPS XML shipping module, where can I download it? I appreciate you help
×
×
  • Create New...