[BUG] 5.0.5

For articles specific to version 5.x
Martin
Site Admin
Site Admin
Posts: 1854
Joined: Wed Jun 17, 2009 6:30 pm
Location: South Yorkshire UK
Contact:

Re: [BUG] 5.0.5

Post by Martin »

gaz wrote:Thats from the email sent to me when I receive an order.

The only place I can see that var being used is in modules\notification\email\module.email.php
I cant seem to find the template for that email
EDIT: Problem was located by exabytes18 on Interspire Forums...

Open: /modules/notification/email/lang/en/language.ini

Find:

Code: Select all

NEmailMessageBody = ":testBanner*** This is an automatically generated email, please do not reply ***<br /><br />You have received a new order on :shopName for %numItems items(s) totalling :orderTotal. Follow the link below to view complete details of the order:<br /><br /><a href=':shopPath/admin/index.php?ToDo=viewOrders&orderId=:orderId'>:shopPath/admin/index.php?ToDo=viewOrders&orderId=:orderId</a><br /><br />"
Replace with:

Code: Select all

NEmailMessageBody = ":testBanner*** This is an automatically generated email, please do not reply ***<br /><br />You have received a new order on :shopName for :numItems items(s) totalling :orderTotal. Follow the link below to view complete details of the order:<br /><br /><a href=':shopPath/admin/index.php?ToDo=viewOrders&orderId=:orderId'>:shopPath/admin/index.php?ToDo=viewOrders&orderId=:orderId</a><br /><br />"
Martin
Site Admin
Site Admin
Posts: 1854
Joined: Wed Jun 17, 2009 6:30 pm
Location: South Yorkshire UK
Contact:

Re: [BUG] 5.0.5 - sitemap.php shows hidden categories

Post by Martin »

Non-visible categories being shown in sitemap.php

FIX:
Open: /sitemap.php

Find:

Code: Select all

    $query = "
        SELECT categoryid, catname
        FROM [|PREFIX|]categories
        WHERE categoryid != catparentid
        LIMIT ".$GLOBALS['ISC_CLASS_DB']->Quote((int)$limit)
    ;
Replace, with:

Code: Select all

    $query = "
        SELECT categoryid, catname
        FROM [|PREFIX|]categories
        WHERE categoryid != catparentid AND catvisible=1
        LIMIT ".$GLOBALS['ISC_CLASS_DB']->Quote((int)$limit)
    ;
gaz
Confirmed
Confirmed
Posts: 30
Joined: Mon Jun 22, 2009 1:27 pm

Re: [BUG] 5.0.5

Post by gaz »

cheers for this martin
Martin
Site Admin
Site Admin
Posts: 1854
Joined: Wed Jun 17, 2009 6:30 pm
Location: South Yorkshire UK
Contact:

Re: [BUG] 5.0.5

Post by Martin »

gaz wrote:cheers for this martin
NP... :)
Post Reply