Jump to content

Dirty Butter

Member
  • Content Count

    6,424
  • Joined

  • Last visited

  • Days Won

    137

Dirty Butter last won the day on June 13

Dirty Butter had the most liked content!

Community Reputation

721 Excellent

Profile Information

  • Gender
    Female
  • Location
    USA

Recent Profile Visitors

49,403 profile views
  1. 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:
  2. 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 ?
  3. 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}
  4. 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!
  5. 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.
  6. 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: "","" , ")"
  7. 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...
  8. 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!!
  9. Dirty Butter

    Can I limit Coupon Code?

    I use this plugin, and yes, it can be limited to one use per customer.
  10. 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.
  11. 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.
  12. 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.
  13. 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. :)
  14. 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.
  15. Dirty Butter

    Page that PayPal sends customer back to?

    I'm sorry to be so dense, but I still don't know what the url is for the page they return to.
×