Jump to content

Leaderboard


Popular Content

Showing content with the highest reputation on 03/20/2020 in all areas

  1. 1 point
    JcMagpie

    New Products For %s

    The answer is simple... 1) set the number to be display in admin 2) In order to change what is displayed you need to change the sql query used in the class. at the moment you will have it sorting by product id in decending. if ( (!isset($new_products_category_id)) || ($new_products_category_id == '0') ) { $card_products_query = tep_db_query("select p.*, pd.*, 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, p.products_quantity as in_stock, if(s.status, 1, 0) as is_special from products p left join specials s on p.products_id = s.products_id, 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_id desc limit " . (int)MODULE_CONTENT_CARD_PRODUCTS_MAX_DISPLAY); } else { $card_products_query = tep_db_query("select distinct p.*, pd.*, 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, p.products_quantity as in_stock, if(s.status, 1, 0) as is_special from products p left join specials s on p.products_id = s.products_id, products_description pd, products_to_categories p2c, categories c where p.products_id = p2c.products_id and p2c.categories_id = c.categories_id and c.parent_id = '" . (int)$new_products_category_id . "' and p.products_status = '1' and p.products_id = pd.products_id and pd.language_id = '" . (int)$languages_id . "' order by p.products_id desc limit " . (int)MODULE_CONTENT_CARD_PRODUCTS_MAX_DISPLAY); } You just need to change "p.products_id desc" to "RAND()" as below. As always backup before making any changes. if ( (!isset($new_products_category_id)) || ($new_products_category_id == '0') ) { $card_products_query = tep_db_query("select p.*, pd.*, 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, p.products_quantity as in_stock, if(s.status, 1, 0) as is_special from products p left join specials s on p.products_id = s.products_id, products_description pd where p.products_status = '1' and p.products_id = pd.products_id and pd.language_id = '" . (int)$languages_id . "' order by RAND() limit " . (int)MODULE_CONTENT_CARD_PRODUCTS_MAX_DISPLAY); } else { $card_products_query = tep_db_query("select distinct p.*, pd.*, 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, p.products_quantity as in_stock, if(s.status, 1, 0) as is_special from products p left join specials s on p.products_id = s.products_id, products_description pd, products_to_categories p2c, categories c where p.products_id = p2c.products_id and p2c.categories_id = c.categories_id and c.parent_id = '" . (int)$new_products_category_id . "' and p.products_status = '1' and p.products_id = pd.products_id and pd.language_id = '" . (int)$languages_id . "' order by RAND() limit " . (int)MODULE_CONTENT_CARD_PRODUCTS_MAX_DISPLAY); }
  2. 1 point
    mhsuffolk

    New Products For %s

    In admin Click Configuration>Maximum Values>Selection of random new products and edit value.
  3. 1 point
    Yeah, it's not so bad... plenty of people still using and posting in the free and open forum.. Good news is another partner is working on and will be making available an alternative free community version and will hopfully keep his club open to all. So looking forwared things look fine and people will have options to select from.
  4. 1 point
    should be simple to fix... 1) look at the html beeing genrated for one of the images and make sure it is corect ie. path to file and file name is correct. 2) Make sure image dir is readable 3) Check SSL as in some browsers images from none SSL are blocked Oh and check error logs for clues.
  5. 1 point
    Jack_mcs

    HoneyPot Captcha

    The previous versions of Phoenix used the $error variable to allow an account to be created or not. The code in Honey Pot relies on that variable. So maybe using the function you mentioned will work. As mentioned, I haven't had time to go though that. But even if it does, the addon would still fail with 1.0.5.4 because the HP code checks the variables by name, like $postcode. Those are now in the customer details code so the HP code can't work as it is.
  6. 1 point
    I will be very happy to try it. It would be very nice to be able to participate. I suggest you to leave the club open so that many people can participate and promote your edition. I am anxiously waiting for news! Get on with your wonderful work. regards Valqui
  7. 1 point
    JcMagpie

    Add text to footer copyright

    look in public_html/includes/languages/english/modules/content/footer_suffix/cm_footer_extra_copyright.php
  8. 1 point
    Can be seen in action on this site
  9. 1 point
    JcM Product info Stock Display Phoenix Simple add-on to display stock quantity on product info page Simply copy all files of the into relevant sections and go to admin modules admin and install. Stock low level can be set in admin. Will show stock level using traffic light colors Green for Good Amber for Low Red for No Stock Has been tested on Phoenix 1.0.5.4 only. That’s it Enjoy!...
  10. 1 point
    Down loaded from app store and installed fresh on 1.0.5.4 and working fine front and back. You will neeed to check your install.
  11. 1 point
    You should be able to use the frist version on that. JcM Product info tabs Select you can see it on this 1.0.4.0 site
  12. 1 point
    It looks very good and pretty !!! Great job Zahid !!! for Phoenix 1.0.4.0 which version do you recommend?
  13. 1 point
    JcM Product Info Tabs Selec V3.1 Phoenix Updated to fix language file.
  14. 1 point
    JcMagpie

    Products - How many are in stock

    No problem, I you need to show it on the product listing it can be done. It will how ever need some core changes as the best way to do that is to get rid of the product_listing.php and move that in to a template file in index_products. needs a new cm_ip_product_listing add-on and small edits to 3 files. PM me if you need this.
  15. 1 point
    JcMagpie

    Products - How many are in stock

    if it's on the product info page then, https://apps.oscommerce.com/XYBS0&jcm-product-info-stock-v1-0&p=3 if it's on indexed products then that's not finished yet.
  16. 1 point
    Scinetic

    Newbie Member

    #Metoo 😂
  17. 1 point
    JcMagpie

    International SEO

    Google support advice. Scraped content Some webmasters use content taken (“scraped”) from other, more reputable sites on the assumption that increasing the volume of pages on their site is a good long-term strategy regardless of the relevance or uniqueness of that content. Purely scraped content, even from high-quality sources, may not provide any added value to your users without additional useful services or content provided by your site; it may also constitute copyright infringement in some cases. It's worthwhile to take the time to create original content that sets your site apart. This will keep your visitors coming back and will provide more useful results for users searching on Google. Some examples of scraping include: Sites that copy and republish content from other sites without adding any original content or value Sites that copy content from other sites, modify it slightly (for example, by substituting synonyms or using automated techniques), and republish it Sites that reproduce content feeds from other sites without providing some type of unique organization or benefit to the user Sites dedicated to embedding content such as video, images, or other media from other sites without substantial added value to the user
  18. 1 point
    piernas

    International SEO

    Every time SEO Urls has been metioned I've heard "there's no point on using it nowadays". Well this is a true example of why these are still useful and why oscommerce has a poor localization. If you have a multilingual shop and you want it to be correctly indexed you really, really need a SEO addon that rewrites urls for each language. BTW I've been tweaking the latest versions of SEO urls 5 and there's a glitch with hreflang tags not being correctly shown until session is set - so spiders can¡t see it. I'll fix it and upload again in case someone wants to use it.
×