Announcement

Collapse
No announcement yet.

Block Ifs with product reference no

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Block Ifs with product reference no

    Hi Guys,

    I am trying to add a link to gift wrapping option for every product in the shopping cart except the gift wrapping option itself

    Have used the example shown in the advanced users guide but this only adds in one link at the top / bottom of the shopping cart, not for each line item.

    So far, I have come up with the following...

    Code:
    <actinic:block if="%3cactinic%3avariable%20name%3d%22ProductReference%22%20%2f%3e%20%3d%3d%20%27giftwrap%27" >
    <a href="http://clientelsystems.com/acatalog/gift-wrapping.htm"><span class="giftwrap">Please click here to add Gift Wrapping to your Order for FREE</span></a>
    </actinic:block>
    I know the code above in the block if needs tweaking..
    Ideally, I would like to display in the shopping cart under each line item..
    If product reference is not equal to giftwrap, show link to gift wrapping product

    Many thanks in advance, this forum has saved me from many late nights!

    #2
    Might be a stupid question but why on earth do you want the gift wrap option as a product anyway. It isn't really a product is it?

    Why not just set the gift wrap "product" as hidden on the site and just have it attached as an option on every other product

    Just a thought.
    Boxhedge New Media Design
    Design and development solutions for SME's.
    Tel: 0118 966 2786
    Examples of work can be found at http://www.boxhedge.com

    Comment


      #3
      Also likes in the cart display in a block beneath the cart and not beneath each product. If you need to add as an also like at the product level but not against specific products simply create a user defined variable scoped to product level... set the default to true and then to false against the specific product... a simple blockif can be created to wrap the also like layout and tested accordingly.


      Bikster
      SellerDeck Designs and Responsive Themes

      Comment


        #4
        Gift wrap as product

        It needs to be a product as it has a message option associated with it (the other prompt on all the products is already being used)

        Thanks for your suggestion Jont

        As I see it, this is my only option as i need two prompts for each product (or gift wrapping with a message), either that or turn the date info question in to a text field

        Comment


          #5
          Again, why not have the message be something that gets filled in when you are in the checkout.


          If this still doesn't make sense what about using the product ID of the gift wrapping product
          Code:
          <actinic:block if="%3cactinic%3avariable%20name%3d%22ProductID%22%20%2f%3e%20%21%3d%20%2236%22" >
          <a href="http://clientelsystems.com/acatalog/gift-wrapping.htm"><span class="giftwrap">Please click here to add Gift Wrapping to your Order for FREE</span></a>
          </actinic:block>
          Replace "36" with the id of the gift wrapping product. I think that should work
          Boxhedge New Media Design
          Design and development solutions for SME's.
          Tel: 0118 966 2786
          Examples of work can be found at http://www.boxhedge.com

          Comment


            #6
            That would work fine bangers if they added one product to the cart. Multiple products would need multiple prompts (2 per product)

            Thanks for amending the code, i will try that now, x

            Comment


              #7
              Giftwrap options

              Hi Teajay

              just wondered if you got sorted on your giftwrap issue. I have a plugin to do mine, but myself & actinic have not been able to get it working properly in 6 months and I am fed up with it. It's more hassle than it's worth.

              I want to find another way and I think I want to do the same as you (if I've understood correctly). The giftwrap option in actinic only allows it for 1 product. I want it for all products as my customers may ship out to several del addresses and I need those details on the info prompt. Did you resolve this?

              The other way I thought of, was to put a link in every product page, to the giftwrap product so it opened as a pop up with an add to cart button & the info prompt. I don't know yet whether it could be done and if it would bounce back to the original product page after a customer has added giftwrap, so they can add the product too and if all the details would show in the cart.

              Please let me know if you found a solution.

              Thanks

              Hx
              Helen
              www.postapresent.co.uk
              Gifts by Post & Giftwrapping Service

              Comment

              Working...
              X