Jump to content

red sun

Member
  • Posts

    42
  • Joined

  • Last visited

Everything posted by red sun

  1. Sorry - was a bit hasty there - carrying out the actions in the preceeding post knackers the admin area. I'm assuming it can't find its template files...
  2. A combination of all three of your suggestions did the trick. In controllers/controller.index.inc.php change $GLOBALS['smarty'] = new Smarty(); to $GLOBALS['smarty'] = new SmartyBC(); in classes/autoloader.class.php change if ($class == 'Smarty') { require_once CC_INCLUDES_DIR.'lib'.CC_DS.'smarty'.CC_DS.'Smarty.class.php'; return true; } to if ($class == 'SmartyBC') { require_once CC_INCLUDES_DIR.'lib'.CC_DS.'smarty'.CC_DS.'SmartyBC.class.php'; return true; } Finally, I popped the following code into the template file box.newsletter.php {php} echo (isset($_GET['subscribed']))?'<p class="confirmation">Thank you for subscribing</p>':''; {/php} Many thanks bsmither - another problem solved !!!
  3. Hi there - I tried that and also updated the path in autoloader.class.php to the following without any success. require_once CC_INCLUDES_DIR.'lib'.CC_DS.'smarty'.CC_DS.'SmartyBC.class.php'; Your reply to my other post regarding problems with the newsletter form not showing a response has helped greatly, so I have no need to add custom php to the templates at this time. Many thanks for your help so far. I may re-open this topic if I hit any future problems where custom php would provide a quick fix...
  4. Fantastic, thank you so much for your help. The function writes the following to the page: <div id="gui_message"> <div class="gui_message-notice">Your email address has been added to our mailing list.</div> </div> The message is appearing above the main page content as it does in the newsletter template page. Is there any way for it to appear in the newsletter box?
  5. Hi bsmither - thanks for letting me know. I take it there's no way to put your own php in the templates now.
  6. In an effort to solve an issue with the newsletter subscription form not providing a success message I thought a quick solution would be to look for the "subscribed" variable in the url and use php to echo a success message (I know the recommended approach is to create a plug-in but that is beyond my abilities). I followed the instructions in the CubeCart support files for enabling PHP in templates and added the following code in controllers/controller.index.inc.php: $GLOBALS['smarty']->allow_php_tag = true; The documentation states However there is no "controllers" directory under "skins", so i modified "controllers/controller.index.inc.php". I then added the smarty php tags as per http://www.smarty.net/docsv2/en/language.function.php.tpl However when I try to add any code, or even just empty {php} {/php} tags the page fails to load. Has this feature been removed form the latest version of CubeCart or have I missed someting really basic?
  7. The newsletter subscription box works but does not show a confirmation message. I'm sure on older versions of CC that you used to see a "subscription successful" message. There's a language setting for the success message: "newsletter.email_subscribed". I tried the CC site demo and it doesn't appear to be working on there either. Any help much appreciated...
  8. Many thanks Dirty Butter - thought I was going mad when I couldn't find a way to edit the topic title.
  9. I know this may sound dense - but how do I mark this as "resolved" so other users know there's a solution?
  10. Absolutely brilliant - that's working perfectly. Thank you so much for your help.
  11. Hi bsmithers - many, many thanks for getting back to me. Unfortunately that didn't work as it removed the category description from all pages. {if !isset($page) || empty($page)} <div class="description">{$category.cat_desc}</div> {/if} If it's any help, the url is formed as "mydomain.com/mycat.html?page=1" for the first page and incrementing for subsequent pages, so guess we need to test for equal to or greater than 1? I tried a few attempts at this but without any luck - I'm a designer not a coder.
  12. Is there a way to only show the category description / associated image on the first page of each category's product listings? The site I'm working on has a lovely big image gallery on each category landing page. This is fine for the first page, but it gets a bit tedious when you navigate through the next paginated pages of products and it's still at the top of the page. Many thanks...
  13. Couldn't agree more with McDerp, however, I think the problem may thankfully be restricted to the admin area. Apologies if I seemed to be panicking but I intially thought that the whole thing was behaving incorrectly. The "admin/orders" section is showing the already-discounted value of items and the discount as 43% however the totals are correct when compared to the discount applied on the front end through the customer's basket.
  14. Hi folks Still having problems with coupon codes, and one of my clients is using them heavily in the run-up to Christmas. This is becoming a major headache and I would hope this can be resolved as soon as possible. My decision to recommend CubeCart to my client is starting to weigh very heavily against me. In "orders/items" the totals are incorrect. £6.29 + £6.29 = £12.58 (not £12.59). The total discount should be £3.77 (not £5.39 at 43%!). I can't figure out why CubeCart is increasing the percentage discount. It even happens on orders of single items so doesn't appear to be caused by multiple items in the basket. (NB: in the example below the shipping is high because the delivery is to Asia - this isn't an error) Any ideas for a quick fix? I'd normally not want to amend core code but in this instance may not have the option. Please help!
  15. I don't want to make any changes at the moment as the coupons are active on a live store and the client has just spent a bit of time adding all the products into the coupon, but I'll try this later next month when the offers are over. Many thanks for the solution bsmither and to Dirty Butter for carrying out a test (and reminding me to add my version info to my signature - apologies). Having only just joined the forum I'm really impressed by the speed of response to enquiries - thanks again!
  16. Thanks for the welcome. I've been using CubeCart since v4 but never got round to joining the forum. The error message shown at the top of the Shopping Basket page was "The following errors were detected: Sorry, that voucher is not valid for the items in your basket." My client has now added the individual products to the coupon so all is now working as expected. As stated in my original post, I think the issue was more to do with the assumption that not assigning specific products would mean that coupon discounts would apply to all products.
  17. Using latest version - 5.1.5. My client created two new coupon codes (and had them published in a magazine) but didn't assign specific products and assumed that the coupons would therefore apply to everything. Then started receiving customer complaints that the coupons were not working. The coupons were created after upgrading from 5.1.4 so no issues with legacy code. In the Advanced/Maintenance/Upgrade tab it says: "Your store is currently using the latest version. Please click force upgrade to restore to the default code for this version." I haven't clicked "force upgrade" as I was unsure what it woud do the site so don't know if this is part of the problem. It seems you have to specify exactly which products the coupon discount applies to. Think this should be made clearer in the admin area. Cubecart has no official documentation so help notes in the admin area are all some clients have to go on. It might also be preferable to be able to apply the discount code to a specific category as it is laborious adding lots of products, especially as you have to enter the product name precisely rather than choose from a list.
×
×
  • Create New...