Jump to content

wjbeckett

Members
  • Posts

    22
  • Joined

  • Last visited

Profile Information

  • Location
    Brisbane
  • Activity
    User/Merchant

Recent Profile Visitors

396 profile views

wjbeckett's Achievements

Newbie

Newbie (1/14)

4

Reputation

1

Community Answers

  1. This is exactly what I am try to achieve. Hopefully someone out there can assist or can point us in the right direction to get this working? Thanks everyone.
  2. Anyone? I'd like to be able to do something like: If Voucher = "FreeShipping" <tr class="cart_total_delivery" style="{if !isset($carrier->id) || is_null($carrier->id)}display:none;{/if}"> <td colspan="{$col_span_subtotal}" class="text-right">{l s='Shipping'}</td> <td colspan="2" class="price" id="total_shipping">{l s='Free Shipping!'}</td> </tr> Else blah.. Is it possible at all?
  3. Hi all, I'm looking for a way to have a voucher code hard coded into the shop somehow. The reason I wanted to do this is so I could have a voucher that will apply free shipping but will not be included in the "total_discounts" function so that if a user adds the free shipping voucher to the cart the "Total Shipping" will change to Free Shipping! but will also allow you to add another voucher. I currently have this half working by changing some stuff around in the shopping-cart.tpl as below. <tr class="cart_total_voucher" {if $total_discounts == 0 OR $total_discounts == 12}style="display:none"{/if}> <td colspan="{$col_span_subtotal}" class="text-right"> {if $display_tax_label} {if $use_taxes && $priceDisplay == 0} {l s='Total vouchers:'} {else} {l s='Total vouchers'} {/if} {else} {l s='Total vouchers'} {/if} </td> <td colspan="2" class="price-discount price" id="total_discount"> {if $use_taxes && $priceDisplay == 0} {assign var='total_discounts_negative' value=$total_discounts * -1} {else} {assign var='total_discounts_negative' value=$total_discounts_tax_exc * -1} {/if} {displayPrice price=$total_discounts_negative} </td> </tr> {if $total_discounts == 12 OR $total_shipping_tax_exc <= 0 && !isset($virtualCart)} <tr class="cart_total_delivery" style="{if !isset($carrier->id) || is_null($carrier->id)}display:none;{/if}"> <td colspan="{$col_span_subtotal}" class="text-right">{l s='Shipping'}</td> <td colspan="2" class="price" id="total_shipping">{l s='Free Shipping!'}</td> </tr> {else} {*{if $total_shipping_tax_exc <= 0 && !isset($virtualCart)} <tr class="cart_total_delivery" style="{if !isset($carrier->id) || is_null($carrier->id)}display:none;{/if}"> <td colspan="{$col_span_subtotal}" class="text-right">{l s='Shipping'}</td> <td colspan="2" class="price" id="total_shipping">{l s='Free Shipping!'}</td> </tr> {else}*} {if $use_taxes && $total_shipping_tax_exc != $total_shipping} {if $priceDisplay} <tr class="cart_total_delivery" {if $total_shipping_tax_exc <= 0} style="display:none;"{/if}> <td colspan="{$col_span_subtotal}" class="text-right">{if $display_tax_label}{l s='Total shipping (tax excl.)'}{else}{l s='Total shipping'}{/if}</td> <td colspan="2" class="price" id="total_shipping">{displayPrice price=$total_shipping_tax_exc}</td> </tr> {else} <tr class="cart_total_delivery"{if $total_shipping <= 0} style="display:none;"{/if}> <td colspan="{$col_span_subtotal}" class="text-right">{if $display_tax_label}{l s='Total shipping (tax incl.)'}{else}{l s='Total shipping'}{/if}</td> <td colspan="2" class="price" id="total_shipping" >{displayPrice price=$total_shipping}</td> </tr> {/if} {else} <tr class="cart_total_delivery"{if $total_shipping_tax_exc <= 0} style="display:none;"{/if}> <td colspan="{$col_span_subtotal}" class="text-right">{l s='Total shipping'}</td> <td colspan="2" class="price" id="total_shipping" >{displayPrice price=$total_shipping_tax_exc}</td> </tr> {/if} {/if} I've added "OR $total_discounts == 12" to the first line which will hide the "Total Vouchers" line if the free shipping code is entered (Shipping is a flat rate of $12 on my store). I've also added {if $total_discounts == 12 OR $total_shipping_tax_exc <= 0 && !isset($virtualCart)} <tr class="cart_total_delivery" style="{if !isset($carrier->id) || is_null($carrier->id)}display:none;{/if}"> <td colspan="{$col_span_subtotal}" class="text-right">{l s='Shipping'}</td> <td colspan="2" class="price" id="total_shipping">{l s='Free Shipping!'}</td> </tr> {else} which will, if the voucher equals $12, will change the Shipping total to show "Free Shipping!" instead of the price. So I have it working as I want for the Free shipping side of it, however if the total discounts equals more than $12 (happens if another voucher is added) the shipping price comes back in and the shipping discount voucher is added to the "Total Vouchers" line. Is there a way of separating this? Is there a way of making the free shipping voucher act independently to any other voucher so I can have the words "Free Shipping!" in the shipping cost as well as having another discount applied to the shopping cart? Any help would be greatly appreciated! Thanks, Will.
  4. Do you use the OPC in Prestashop 1.6 or the regular checkout? I'm looking to achieve the same outcome however I use the default OPC. Will.
  5. Has anyone got this working with OPC in Prestashop 1.6? I'm looking to remove the shipping section also as we only offer one shipping method. Thanks, Will.
  6. Hi All, I've been looking for a solution everywhere but can't seem to find one. Is it possible to have a carrier hidden until a voucher is used? For example, I have 2 carriers enabled (Aus Post and Local Pickup). The Local Pickup carrier has free shipping as it's picking up from us. I would like for customers to only be shown the "Aus Post" carrier unless they have entered a voucher code. Once the add the voucher code I'd like the "Local Pickup" carrier to be shown and able to be selected. Is this possible at all? I know currently if I enable both carriers they will both be shown to every customer - I don't want everyone knowing they can pickup from us unless they use a code. Any help in getting this achieved would be great! Thanks, William.
  7. Yeah I had a look at that page but couldn't figure out what I needed to put where. Obviously this is my first time playing with Prestashop so everything is new to me. I just kept getting lost in what pieces of code I needed to move where.
  8. Thanks for the reply Naldinho, I did see Attribute Wizard Pro however I can't really justify spending $150 to modify one product once. In my shop, I only have 4 products and only one of those 4 products uses a custom text field. I'm happy to edit the core files, and I've been digging around in there, I'm just finding it hard to figure out where to put what. I assume the value I need to move is $customizedDatas.$productId.$productAttributeId However, finding where I need to move it and then stopping it from adding the second row is where It all gets too hard for me. haha. I'd really appreciate if someone could point me in the right direction to try to achieve this. Regards, William.
  9. anyone have any idea how to achieve this? Just wanted to try and tidy up the shopping cart page.
  10. Hi all, I've been looking for a way to add the custom text to the existing product without creating an additional row beneath the product. What I mean by this is can I make the customized text be inserted into the product under the attributes? See attached screenshot. I've been trying to figure out how to do this but have been having a pretty hard time. Any help would be greatly appreciated! Regards, William.
  11. Is this something that is likely to change? It seems like a pretty big issue to have. I'm coming from Magento and miss this feature greatly. In Magento I used to be able to use the quick add to cart button which would load an ajax window which required me to select attributes before adding to the cart. I'd love to see this in Prestashop too!
  12. Hi everyone, I was hoping someone could help me with moving the "Login with PayPal" button on the Authentication page. I was hoping to add it as one of the Bootstrap columns next to the Register and Login fields but Can't seem to find any hooks to move around i the authenticaiton.tpl file. This is what it currently looks like: This is what I want to get it to look like: I can make all the changes easily enough, I just need to know where to make these changes to make it look how I want it to. I've looked though the authentication.tpl file and cannot find any reference to it at all. I can obviously just disable the login button but I'd like to give my customers that other option. Thanks, Will.
  13. Found the solution here: You can remove by hiding code: Go to ftp /themes/<YOUR_THEME>/modules/blockcart/blockcart.tpl All 3 taxes can be hidden inside this file like so: Total products: Ctrl F search for> "total products" and {*hide*} code like this: {*{l s='(tax excl.)' mod='blockcart'}*} {else} {*{l s='(tax incl.)' mod='blockcart'}*} Total shipping: Ctrl F search for> "total shipping" and {*hide*} code like this: {*{l s='(tax excl.)' mod='blockcart'}*}{else}{*{l s='(tax incl.)' mod='blockcart'}*} Total: Ctrl F search for> "total" and {*hide*} code like this: {*{l s='(tax excl.)' mod='blockcart'}*} {else} {*{l s='(tax incl.)' mod='blockcart'}*} Now all 3 tax should be gone after you saved en refreshed a few times
×
×
  • Create New...