Jump to content

Dirty Butter

  • Content Count

  • Joined

  • Last visited

  • Days Won


Everything posted by Dirty Butter

  1. YEP - lots of spacing changes, new smarty, new PHP Mailer, not to mention one substitution that had to be done all over the place - can't remember now what it was.
  2. Thanks for your time - I may have actually learned a little bit
  3. Here's what resulted when I saved the custumer_message text entry as Hex and saved it: 466F7220796F75 - here's the ???? part - 0D0A4C6F76652C204D616D61
  4. I created a test order and pushed enter to get different lines shown. The order_summery table customer_message field has just what I typed in on the customer's order page: And the packing slip works! I guess I never had actually tested it as a customer, because they never have used different lines. So the problem is not with code, but a way to explain this method to the customer. Sorry for wasting your time!
  5. This is my code for the Gift Enclosure section: {if !empty($order.customer_message)} <p><center> <!-- <div id=" ">Message from {$order.first_name}: <h3> {$order.customer_message|nl2br}</div></h3> --> <div id=" "><h2> {$order.customer_message|nl2br}</div></h2> </center></p> {/if} So it already has the |nl2br| - maybe in the wrong place?
  6. This is for the print packing slip that goes in every order. I used <br> to create lines- quick and easy, rather than <p> </p>.
  7. I basically cloned the packing slip files so I can give customers a way to write a gift message and send a packing slip without prices displayed. This works very well for short messages. But sometimes they write enough to wrap to a second line and doesn't "look right". My layout centers their message under our logo in a large bold font. Here's one that looks odd all in one wrapped line: Happy 1st Birthday to my beautiful daughter, xxx!! I hope you love and cherish your Nicky!!! Love, mommy For the few that are this long I have been going into phpMyAdmin and adding breaks: Happy 1st Birthday to my beautiful daughter, xxxx!! I hope you love and cherish your Nicky!!! Love, mommy Is there any fairly easy coding change to give the customer a way to create the line breaks? If not, I'll keep doing what I am doing. This happens rarely enough to not be that much trouble.
  8. 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.
  9. It's on Standard PayPal and evidently on Braintree too , based on someone's thread on Braintree.
  10. 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
  11. 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.
  12. 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.
  13. 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.
  14. When payment is made - been this way since the beginning Main stock level as matrix stock level summary NOT checked - never has been
  15. 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?
  16. 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:
  17. 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 ?
  19. 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!
  20. 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.
  21. 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: "","" , ")"
  22. 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...
  23. 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!!
  24. I use this plugin, and yes, it can be limited to one use per customer.
  • Create New...