Jump to content

Dirty Butter

Member
  • Content Count

    6,433
  • Joined

  • Last visited

  • Days Won

    137

Everything posted by Dirty Butter

  1. Has to do with payment gateways - Senior Moment that has turned into a Senior Week LOL. PS - tried to choose Extension Discussion, but would not let me choose that section to post in.
  2. Dirty Butter

    I've forgotten what "Email address override" does

    Thanks! That's what I thought but wasn't sure which check mark I needed. We had a PP chargeback on a sale that was delivered to a different address. But a lot of our sales are gifts, so different destinations is common for us.
  3. Dirty Butter

    I've forgotten what "Email address override" does

    It's on Standard PayPal and evidently on Braintree too , based on someone's thread on Braintree.
  4. My Admin DOES sort by Sales Price. That may be something Bsmither helped me do a long time ago - will try to find it. Well I found it, but it's not quite what you need. I suspect what you need might take similar coding - but it's way past my abilities. https://forums.cubecart.com/topic/54197-need-help-with-sort-on-custom-quantity-discount-column/?tab=comments#comment-234658
  5. We sold an item today I knew we only have one of. I always check the image and desciption in the store to be sure I get the right one out of stock. Lo and behold it was shown in the store as still available. This has never happened to me before. As soon as I cleared Cache in Admin, the storefont data was correct. Any idea how that happened?
  6. Dirty Butter

    Store Sale - Number in Stock NOT change on Sale

    Nothing in the options_identifier. I don't use Options - never have. Order Details, Transaction log, and History all look normal Store product details show in stock Admin list of all products showed it in stock and in stock when I opened that product listing EVERYTHING looked as it should in database, transaction, history, options_matrix. When I manually updated Cache from Admin - all behaved itself and corrected error. I've never seen anything like this in all my years of using CC.
  7. Dirty Butter

    Store Sale - Number in Stock NOT change on Sale

    The list of all Products DID show it as being in stock when it should have been zero. I'll check out the other areas you've asked about as soon as I can.
  8. Dirty Butter

    Store Sale - Number in Stock NOT change on Sale

    When payment is made - been this way since the beginning Main stock level as matrix stock level summary NOT checked - never has been
  9. Dirty Butter

    Can I limit Coupon Code?

  10. I need help making Facebook happy with my Open Graph image setting. I've tried using this: <link rel="image_src" href="{$PRODUCT.large}" /> <meta property="og:image" content="{STORE_URL}/images/cache/{$PRODUCT.large}"/> I thought this would work in the element.meta.php file, but it didn't. This would probably have been much easier before I put almost all our images in folders. That's one action I have really wished I had never done - but it's that way now. I would prefer using the source file url, but that would be a different folder for different listings. I've tried <meta property="og:image" content="{$image.source}"/> But that did not work, either. I've managed to work out all the other Open Graph settings Facebook requires, but I'm stumped on the image. Has anyone made this work for Facebook ?
  11. Dirty Butter

    Need help with og:image source code

    It needs to be code that picks up the image url for each product, not inferred from other code on the page. I'm trying to cross the t's and dot my i's, because I'm having trouble getting Facebook to approve of an App. I'm not sure you will see what I see from this url:
  12. Dirty Butter

    Deluxe Document Manager help

    Do you have these "placeholders" in your skin where you want them? {$SFWS_DELUXE_DOCUMENT_MANAGER_HEADER} {$SFWS_DELUXE_DOCUMENT_MANAGER_SIDE01} {$SFWS_DELUXE_DOCUMENT_MANAGER_SIDE02} {$SFWS_DELUXE_DOCUMENT_MANAGER_FOOTER}
  13. Dirty Butter

    Error Warning Non-Numeric Value

    I haven't been able to pin down what's happening when this error is logged: PHP Warning: A non-numeric value encountered in /xxx/public_html/plushcatalog/classes/catalogue.class.php on line 116 Lines 112-147: public function categoryPagination($page) { if ($this->_category_count) { //Pagination $catalogue_products_per_page = $GLOBALS['gui']->itemsPerPage('products', 'perpage'); if (($page * $catalogue_products_per_page) > $this->_category_count) { $new_page = (int)ceil($this->_category_count / $catalogue_products_per_page); if ($new_page < $page) { httpredir(currentPage(null, array('page'=>$new_page))); } } if (($pages = $GLOBALS['db']->pagination($this->_category_count, $catalogue_products_per_page, $page)) !== false) { // Display pagination $GLOBALS['smarty']->assign('PAGINATION', $pages); } } } I'm on today's commit of 6.2.2.
  14. I'm pretty sure Bsmither helped me with this some time ago, but I could't find it. I need four scenarios to work within one section of code in the Specifications: Regular price in stock shows Regular Price Regular price out of stock says Sold for Regular Price Sale item in stock has Regular Price row and Sale Price row below Sale item out of stock shows Sold for Sale Price If I can get that logic coded correctly, I want to then get the meta data added to each one, but I have to get the logic worked out first. I've worked on this solid for almost two days and never found the right combination. (I have a stray brace comment in here somewhere - I'll find that if I get the main part fixed.) I currently have: {* PLUSH ORDER OF PRICES *} <tr> <td>{$LANG.catalogue.stock_level}</td> <td>{$PRODUCT.stock_level}</td> </tr> {if ($PRODUCT.ctrl_sale)} <tr>{* Only show this row when item is on sale - regardless of stock *} <td>Sale Price</td> <td><span>{$PRODUCT.sale_price}</span></td> </tr> {/if} <tr>{* Always show this row *} {if ($PRODUCT.stock_level gt 0)}{* In stock *} <td>Regular Price</td> {else}{* Not in stock *} <td>Sold for </td> {/if} <td><span>{$PRODUCT.price}</span></td> </tr> {/if} {* END PLUSH ORDER OF PRICES *} Here are the pages I've been using to check my code: dirtybutter.com/plushcatalog/eden-yellow-pink-elephant-windup-you-are-my-sunshine-head-turns.html (This is the one that is messed up.) dirtybutter.com/plushcatalog/bearington-baby-little-stitches-196659-pnut-gray-elephant.html (order of Sale and Regular Price rows looks odd but I could live with that) dirtybutter.com/plushcatalog/commonwealth-toy-pink-love-monster-cat-with-hearts.html dirtybutter.com/plushcatalog/carters-halloween-orange-pumpkin-tan-velour-bear-with-cap.html Any and All help is MUCH appreciated!!
  15. Dirty Butter

    Need Help Nesting {if} {else}

    YES! The closed if was needed from somewhere else. I ended up putting it as the last line in the file, based on the error message. I was wrongly assuming it was part of the nesting issue. Anyway, that is fixed. It now works for all four situations. I'll do some more studying to be sure I understand what you did, Bsmither! Thank you as always. Hopefully I can now put the meta data in and please Google! I was pleasantly surprised that I did not have to do anything else to the code to get the metadata included. Once the nesting was correct, the Google Structured Data Test Tool showed no errors!
  16. Dirty Butter

    Need Help Nesting {if} {else}

    AH - the gt 0 in the stock level "means greater than zero" and eq 0 means "equal to 0". Just got back home. Will work on the rest of your changes as soon as I can.
  17. Dirty Butter

    Need Help Nesting {if} {else}

    I've gone around in circles again {* NEW NESTING *} <tr> <td>{$LANG.catalogue.stock_level}</td> <td>{$PRODUCT.stock_level}</td> </tr> {if ($PRODUCT.stock_level gt 0)}{* IF IN STOCK - PRICE *} <tr> <td>Regular Price</td> <td><span>{$PRODUCT.price}</span></td> </tr> {if ($PRODUCT.ctrl_sale)} {* IF ON SALE - SALE PRICE *} <tr> <td>Sale Price</td> <td><span>{$PRODUCT.sale_price}</span></td> </tr> {/if} {else ($product['stock_level'] = 0) {* IF OUT OF STOCK EITHER ON SALE OR REGULAR PRICE *} <tr> <td>Sold for {if ($PRODUCT.ctrl_sale)} {* IF ON SALE - SALE PRICE *} <td><span>{$PRODUCT.sale_price}</span></td> {else} <tr> <td>Regular Price</td> {* SOLD FOR REGULAR PRICE *} <td><span>{$PRODUCT.price}</span></td> </tr> {/if} {/if} {/if} {* END OF NEW NESTING *} Hopefully it's just that I didn't know the right way to show when it is Out of Stock, not the nesting itself. Exception] /plushtest/includes/lib/smarty/sysplugins/smarty_internal_templatecompilerbase.php:128 - Syntax error in template "file:/plushtest/skins/blue/templates/content.product.php" on line 128 "{else ($product['stock_level'] = 0) {* IF OUT OF STOCK EITHER ON SALE OR REGULAR PRICE *}" - Unexpected " = ", expected one of: "","" , ")"
  18. Dirty Butter

    Need Help Nesting {if} {else}

    I've experimented with so many permutations since yesterday that I wouldn't even hazard a guess as to what's going on in it. Thanks for your input! Those are supposed to be comments? But who knows...
  19. Dirty Butter

    Can I limit Coupon Code?

    I use this plugin, and yes, it can be limited to one use per customer.
  20. Dirty Butter

    Error Warning Non-Numeric Value

    So does that mean it's not in our code, so there's nothing to do but ignore it? I have recently discovered that View All in admin will cause it, but it does not show the error on our stock test store.
  21. I have directions for customers to return to our store after paying with PayPal. I don't remember what the url is that PayPal sends the customer TO. And which file is it, so I can make sure it still says what I want it to say.
  22. Dirty Butter

    Page that PayPal sends customer back to?

    I ended up making a hidden document with the Thank you code in it. I then changed the page PayPal takes them back to.
  23. Dirty Butter

    V6.1.15 To V6.2 Skin Updates

    You could use the GitHub list of code changes for Foundation to see what was changed there. Then you could try making comparable changes to your skin. you would definitely need to backup your skin before attempting it. The more recent commits have a lot to do with "beaurifying" the code - that means really the only difference is where the spacing and length of lines is - not really code changes. Sorry, but I'm not skilled enough to give more specific directions.
  24. Dirty Butter

    Page that PayPal sends customer back to?

    There IS a place in PayPal to set the return url AND I already had it set to //dirtybutter.com/plushcatalog/index.php?_a=complete. It's just weird that the customer returned to the page I showed in the post, but I cannot figure out how they got there. I guess I'm going to have to make a fake PayPal account and buy something for a penny. :)
  25. Dirty Butter

    Page that PayPal sends customer back to?

    Well that's what I thought you meant, but that redirects to //dirtybutter.com/plushcatalog/index.php?_a=basket even when I'm logged in to the customer who just bought from us. I'm on 6.2.2 with a few of the commits right after 6.2.2 was released.
×