The Derek Gendron weblog : 0eth0s0

ethos: The disposition, character, or fundamental values peculiar to a specific person, people, culture, or movement.

CUBECART 4 REMOVE CATEGORY PRODUCTS COUNT FROM TREE

If you would like to remove products count from category box just remove this:   Cubecart ecommerce shopping cart

({DATA.noProducts})

in skins/YOUR-SKIN/styleTemplates/boxes/categories.tpl. Don’t forget to clean cache if you use this feature and would like to see the results immediately. Clear Cache feature you’ll find in the same page as “Rebuilt category product count” button.

CUBECART 4 ADD A PRODUCT SHOWS UP IN CATEGORY AS TWO IN MENU

I found a slight bug in Cubecart 4. When adding products using the manage categories, or I should say assigning a product to a new category… If I keep the manage categories window open, After finishing selecting multiple categories for thatCubecart ecommerce shopping cart product, I move to another product. Since there are alot of categories, it requires clicking to go to the next page, etc.

I noticed that when adding a product to multiple categories, the item would show up as two items – the category would reflect two widgets in x category when there was only one.

It happens if you add more than category at the same time. If you close the “manage categories” box each time you add a category (without moving to the next page of categories), it doesn’t replicate the item.”

Server logs show cubecart 4 error Warning: parse_url(/index.php? Unable to parse url

If you are seeing something like this in your Cubecart or server logs:Cubecart ecommerce shopping cart

[Mon Mar 03 20:27:46 2008] [error] [client 69.47.58.156] PHP Warning: parse_url(/index.php?main_page=http://joioiskioeriyyskwkdwjsdfewis.land.ru/.html/body?) [<a href='function.parse-url'>function.parse-url</a>]: Unable to parse url in /var/www/vhosts/YOURSITE.com/httpdocs/includes/sslSwitch.inc.php on line 36

Here is a fix to suppress the error:

edit file includes\sslSwitch.inc.php
FIND: $url_elements = parse_url($_SERVER['REQUEST_URI']);
REPLACE WITH: $url_elements = @parse_url($_SERVER['REQUEST_URI']);
(fixed in MP not in KN)

According to cubecart support staff:

That will indeed suppress the warning, however it is not a bug…at least not in CubeCart. It is a PHP4 bug (we are using php 5.x!), but it doesn’t cause any problems, just the warning. Thanks!

Remember, ALWAYS create a backup prior to doing ANY modifications to files.

Hope this helps someone, if I can ever help with Cubecarts or mods or PHP email me by clicking Contact button at top of page.

– Derek

TURN ON CUSTOMERS EMAIL LIST PREFERENCE IN CUBECART 4

To change the default setting for mail list sign up to checked to (hopefully) get more people on the sign up list:

Open skins\yourskin\styleTemplates\content/reg.tplCubecart ecommerce shopping cart

Find:
CODE
<td colspan=”2″>{LANG_RECIEVE_EMAILS}
<input type=”checkbox” name=”optIn1st”
value=”1″ tabindex=”15″ {VAL_OPTIN1ST_CHECKED}/></td>

Change to:
CODE
<td colspan=”2″>{LANG_RECIEVE_EMAILS}
<input type=”checkbox” name=”optIn1st”
value=”1″ tabindex=”15″ {VAL_OPTIN1ST_CHECKED}/
CHECKED></td>

Depending on your country/location, there may be some legalities to “auto-enable” a customers choice to receive newsletter. Some may view it as not actually an “opt-in”….lol.

Anyway, following this will auto-check the box for a customer, its easy for them to uncheck if desired.

Remember, ALWAYS create a backup prior to doing ANY modifications to files.

Hope this helps someone, if I can ever help with Cubecarts or mods or PHP email me by clicking Contact button at top of page.

– Derek