grafis
-
Posts
93 -
Joined
-
Last visited
Posts posted by grafis
-
-
-
Thanks! Now off for some R&R!
-
Good catch - the following would be functional for empty or full cart.
Opened bug report: http://bugs.cubecart.com/view.php?id=419
Correct code - moved between IF and FOR
<div id="basket_summary"> <h3>{$LANG.checkout.your_basket}</h3> {if isset($CONTENTS) && count($CONTENTS) > 0} <ul> {foreach from=$CONTENTS item=item} <li>
-
Not sure where to put this but thought I'd pass it on as I killed myself to do an CC 4.3.7 > 5.1.4 upgrade I got a lot of help here and it's all based on CC5 which I guess you could say hasn't followed a normal development path :-) Anyhow - within hours of going live the site owner received the following from a long time customer, made me feel 10ft tall and I thought i'd share as we (I) demand a lot of the CC team and they probably don't hear too much beyond $%&*^*%%$!!
"I lOVE your new web site and ordering system. Thanks so much for the change. It took me about half as long to order this time!!"
Peace, thanks to CC5 and the helpers here.
-
That did the trick! And thanks for the note to disable cache during development. I've been manually clearing the cache via FTP and via Admin > Maintenance > Rebuild.
Result -> http://www.luciasimports.com/
Thank you for all your help bsmither!
-
Notes from the field.... The following code appears to be bad in kurouto blue theme (needs confirmation, and may exist in all themes). Using a default CC 5.1.4 install W3C validator finds an unclosed tag on line 119. The culprit is 'box.basket.php' when your shopping cart is empty. The opening UL on line three is outside of the IF statement but the closing UL is not, if the users cart is empty the result is an open UL tag but no closing pair. I moved the UL to line six and all appears good.
Problem code
<div id="basket_summary"> <h3>{$LANG.checkout.your_basket}</h3> <ul> <--- Problem! {if isset($CONTENTS) && count($CONTENTS) > 0} {foreach from=$CONTENTS item=item} <li> <span class="price">{$item.total}</span> <a href="{$item.link}" title="{$item.name}">{$item.quantity} × {$item.name_abbrev}</a> </li> {/foreach} </ul> <p class="basket_items"> <span class="price">{$CART_ITEMS}</span> {$LANG.basket.basket_item_count} </p> <p class="basket_total"> <span class="price">{$CART_TOTAL}</span> <strong>{$LANG.basket.total}</strong> </p> <p class="view_basket animate_basket"><a href="{$BUTTON.link}" title="{$BUTTON.text}">{$BUTTON.text}</a></p> {else} <p style="text-align: center;">{$LANG.basket.basket_is_empty}</p> {/if}[ </div>
Solution - moved the opening UL inside the IF
<div id="basket_summary"> <h3>{$LANG.checkout.your_basket}</h3> {if isset($CONTENTS) && count($CONTENTS) > 0} {foreach from=$CONTENTS item=item} <ul> <--- Moved it! <li> <span class="price">{$item.total}</span> <a href="{$item.link}" title="{$item.name}">{$item.quantity} × {$item.name_abbrev}</a> </li> {/foreach} </ul> <p class="basket_items"> <span class="price">{$CART_ITEMS}</span> {$LANG.basket.basket_item_count} </p> <p class="basket_total"> <span class="price">{$CART_TOTAL}</span> <strong>{$LANG.basket.total}</strong> </p> <p class="view_basket animate_basket"><a href="{$BUTTON.link}" title="{$BUTTON.text}">{$BUTTON.text}</a></p> {else} <p class="basket_empty">{$LANG.basket.basket_is_empty}</p> {/if} </div>
-
You're correct paying others to do what's fun isn't appealing, until it's not fun anymore ;-) My remaining issue with regard to moving Popular and Feature Products from the Nav bar to the homepage using the code above is the accordion menu pushes them down when expanded. I'll get it working content.homepage.php eventually, just have to figure out how to get the queries for content to return data.
Pushed the site live this morning: http://www.luciasimports.com
-
I believe this would indicate we're all Google Chrome users?
Doesn't happen for me in Firefox.
-
Nothing shows up on the homepage other than "Latest Products" - not Popular Products, not Featured Products.
And... I believe that is correct, the error is mine. The Layout Box for Latest and Popular Products has a Homepage option for Latest Prod, not Popular. Grouping them together combined with my trying to move them to the homepage exclusively confused me.... more coffee please?
My goal was to remove these items from the Sidebar and display only on the homepage - What I ended up with is below. The Admin Layout > Popular Products option controlls the number of items displayed.
I tried to put the code into 'content.homepage.php' but could only get the Box section Titles to display, no product content.
main.php - code inserted below {$PAGE_CONTENT}
{$PAGE_CONTENT} <!-- Display on Homepage --> {if isset($SECTION_NAME) && ($SECTION_NAME == "home")} <p style="clear: both;"> </p> <div id="featured_product"> <h3>{$LANG.catalogue.title_feature}</h3> <p class="image"> <a href="{$featured.url}" title="{$featured.name}"> <img src="{$featured.image}" alt="{$featured.name}" /> </a> </p> <p class="title"><a href="{$featured.url}" title="{$featured.name}">{$featured.name}</a></p> </div> <div id="popular_products"> <h3>{$LANG.catalogue.title_popular}</h3> <ol> {foreach from=$POPULAR item=product} <li><a href="{$product.url}" title="{$product.name}">{$product.name}</a></li> {/foreach} </ol> </div> <p style="clear: both;"> </p> {/if} <!-- End Display on homepage -->
-
Any tips or clues on how to send an email after a form is submitted? I'm looking to send a Welcome! email to anyone who registers. Seems like it should be fairly easy but I'm not smart... enough to decipher the Smarty code yet :-)
-
Admin > Store Settings > Layout > Popular and Latest Products
- Show 'Latest Products' on homepage? = YES
- Number of 'Latest Products' to display = 9
- Number of popular products to display = 6
- Source data for popular products = Products Sales (I've also tried Product Views)
Latest Products show up on the homepage but Popular Products do not.
/templates/content.homepage.php has code for Latest Products but none for Popular, could that be the issue?
This post has a manual method that works, modify main.php with conditional logic instead of main.php (which I would prefer to reduce conditional logic processing) perhaps the Admin option is broken and this is the only way? http://forums.cubeca...pular +homepage
- Show 'Latest Products' on homepage? = YES
-
I've created a custom skin based off kurouto. I removed all the /images/color folders including common and placed all images in /images.
Working well with 2 minor exceptions - "common" images fail unless I put the then back here: /images/common, and the skin still shows all the color options in the Admin Layout options.
Any ideas on how to fix these two minor issues?
Here's my config - removed the entire color section.
<?xml version="1.0"?> <skin version="3.1"> <info> <!-- UIDs can be generated on the unix/linux command line using `uuid -v4`, or you can use any string, as long as you think it wont accidentally be picked by anyone else A good example of the latter would be something like '[email protected]'. While not necessarily an active email address, it's a pretty good approximation of a unique key --> <uid>[email protected]</uid> <type>skin</type> <name><![CDATA[lucias]]></name> <display><![CDATA[Lucias]]></display> <version>1.0</version> <minVersion>5.0.0a</minVersion> <maxVersion>5.1.*</maxVersion> <creator>Devellion Ltd</creator> <homepage>http://www.cubecart.com</homepage> <mobile>false</mobile> </info> <images> <!-- Common --> <image reference="thumbnail" maximum="140" quality="75" default="noimage_thumbnail.png" /> <!-- Category Page --> <image reference="category" maximum="580" quality="100" default="" /><!-- Doesnt need a default --> <image reference="subcategory" maximum="75" quality="70" default="noimage_subcategory.png" /> <!-- Product Page --> <image reference="gallery" maximum="45" quality="60" default="noimage_gallery.png" /> <image reference="normal" maximum="270" quality="90" default="noimage_normal.png" /> <image reference="enlarge" maximum="600" quality="90" default="" /><!-- Doesnt need a default --> <!-- Possible names (sizes): thumbnail (138), product(300-ish), enlarged (big), zoom (bigger, poss. source?) --> <!-- These are the ones currently in use --> <image reference="tiny" maximum="30" quality="75" default="noimage_thumbnail_tiny.png" /> <image reference="small" maximum="116" quality="75" default="noimage_thumbnail.png" /> <image reference="medium" maximum="270" quality="80" default="noimage_normal.png" /> <image reference="large" maximum="600" quality="80" default="" /><!-- Doesnt need a default --> </images> </skin>
-
I had to look it up. http://suphp.org/
"suPHP is a tool for executing PHP scripts with the permissions of their owners. It consists of an Apache module (mod_suphp) and a setuid root binary (suphp) that is called by the Apache module to change the uid of the process executing the PHP interpreter."
-
Looking for some help on how Registration works so we can explain it to customers (having to explain it, not good).
The customer...
- Clicks Register link
- Fills in information
- where is the address info?
[*]Clicks Register button
[*]Does not receive a Welcome! email
[*]Does not receive any instructions indicating that they actually haven't fully registered
[*]Adds items to cart
[*]Clicks View Basket
[*]Receives error message
- The following errors were detected:
A billing address is required before you can proceed.
[*]Lands on "Address Book"
[*]To recap, clicking "View Basket" lands you "Address Book"
No Welcome! message, no instructions and now an error... I'm lucky if they don't close the browser at this point. The goal seems to be to create an address book so users can have multiple shipping destinations which is cool but it's a bit awkward for a first time customer. My site owner and customers are confused and that's not good. How is everyone dealing with this?
- Clicks Register link
-
When in free mode CC5 has an Admin Logo which links to the Admin Dashboard - and it disappears when you license the store.
We kinda like it and like to have the store branded.
The Admin Logo feature does not have the Admin Skin so no way to do it there. I grabbed the code from the free store and added a logo.
file: /admin/skins/default/templates/main.php
image: /admin/skins/defaults/images/Admin_Logo.png
image size: 32 x 156 max height and width
link: ? (takes you to the dashboard)
Code: <span id="logo"><a href="?"><img src="{$SKIN_VARS.admin_folder}/skins/{$SKIN_VARS.skin_folder}/images/Admin_Logo.png" alt="Mega Enterprises" title="Mega Enterprises" /></a></span>
<div id="header"> <span id="logo"><a href="?"><img src="{$SKIN_VARS.admin_folder}/skins/{$SKIN_VARS.skin_folder}/images/Admin_Logo.png" alt="Mega Enterprises" title="Mega Enterprises" /></a></span> <span class="user_info">{$LANG.settings.title_welcome_back} <a href="?_g=settings&node=admins&action=edit&admin_id={$ADMIN_UID}">{$ADMIN_USER}</a> - [<a href="?_g=logout">{$LANG.account.logout}</a>]</span> </div>
-
CubeCart support confirmed that there is no new user Welcome/Confirmation email in v5.x
Has anyone here ever signed up for anything online and not received a confirmation email?
[image of head pounding keyboard]
-
I'll mark this as Resolved - glad for your sake - but you do need to add this suPHP info to your sig. It will save a lot of time if you have problems in the future.
Sorry but I didn't know I had suPHP until CubeCart Tech Support told me.
My sig info is straight from CubeCart Dashboard page which doesn't mention suPHP (see below), nor does the CubeCart Server info page or my host's admin page. Any idea where or how I would find out? I'd never heard of it until today.
Technical Details
CubeCart Version 5.1.4 PHP Version 5.2.17 MySQL Version 50165 Image folder size 150.2 MB Download folder size 10 MB Max. Upload filesize 10M Browser user-agent Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.4 (KHTML, like Gecko) Chrome/22.0.1229.79 Safari/537.4 Server Software Apache
-
You mention the files folder is 777. And the file ends in a suffix of .php.
Please send an urgent message to your hosting provider and ask if they permit an executable script to be launched from a 777 folder.
If they say they don't permit that (which would be why you are getting a 500 error), ask them to suggest the number sequence to use.
----------------------------
Please add the fact that your site is under the control of suPHP to your signature.
That was it - 755 worked. CubeCart support said it's because I have suPHP.
-
CC Support just came through with the solution!!
"Please change folder permissions to 755 as it seems your site is running suPHP and 777 permissions are not permitted."
Thanks for all the help and feedback.
-
No, not at the very bottom. And I haven't had my 14th cup of coffee yet. Sorry. Messed up my response badly.
In the Cubecart file adminskinsdefaulttemplatesorders.print.php at around line 82, find:
<div id="storeLabel"> <img src="../images/logos/{$SKIN}.php" alt="" /> </div>
Change that to:
<div id="storeLabel"> <img src="{$STORE_LOGO}" alt="" /> </div>
Now, I can see a crash if the order contains notes. If there are no notes, then there won't be any HTML present that codes for a second page to be printed and the bad method of asking for an image for that second page.
I can't find a file named print.order.php.
This file, orders.print.php is actually a template and the last bit (the unlink() statement) is added under the control of the controller code for this template.
Sorry if I wasn't clear but I did that with no change:
/admin/skins/default/templates/orders.print.php.
Changed the second (if no notes...) logo code to look like the first, uploaded with the same result, 500 error and same HTML
-
Thank you for the help bsmither.
printxxxx.php - only calls an image once.
At the top lines 22-24 look like this:
<div id="storeLabel"> <img src="https://www.luciasimports.com/images/logos/Lucias-Imports.png" alt="" /> </div>
At the very bottom there is this:
</div> </body> </html><?php unlink(__FILE__); ?>
/admin/skins/default/templates/orders.print.php.
Changed the second (if no notes...) logo code to look like the first, uploaded with the same result, 500 error and same HTML
-
Having perused the forums it appears upgrading to 5.1.4 was a bad decision.
Should I roll back to 4.3.7 or wait for 5.1.5?? Customer was dying for the ability to search for items by product code...
-
Clicking Print icon for any order generates the following error:
Internal Server ErrorThe server encountered an internal error or misconfiguration and was unable to complete your request.Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.More information about this error may be available in the server error log.Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.Apache Server at www.xxxxxxxxxxxxxxxx.com Port 443Files folder is 777 and the following file is an example that the process generates: print.59e8556ff82e8d8dae62a9912699205a.php
The file contains all pertinent information as expected and appears to be properly formatted, the only thing odd is the very last line of the file outside of the closing HTML tag is this: <?php unlink(__FILE__); ?>
No error's are generated in the server error log file.
There's another post here from 2011 with the same error noting that it should be reported as a bug. Anyone else have this issue and how to resolve?
-
Email notification - how to code?
in Technical Help
Posted
Hi bsmither, thanks for the clues. I'm on the cusp but can't quite figure it out. The forms are processed by the calling page on which I cannot find any reference to any other processes or classes (Mailer). I PM'ed you - any help appreciated!