Search found 34 matches

Search found 34 matches

Re: Hide product option if option stock is 0

Thank you so much JTY, the instructions were very clear. I did have to make 1 alteration (nothing major) in model file you have to copy a different piece of the array as the name has a join in it. Here are the files affected an what i have change for anyone else who wants to do this. catalog/view/th...

Jump to post
  • Sat Oct 09, 2010 5:00 pm
  • Replies 3
  • Views 1114
Re: Hide product option if option stock is 0

Can someone tell me which file pulls the database query for the options in the product page?

Many thanks

Jump to post
  • Sat Oct 09, 2010 2:38 am
  • Replies 3
  • Views 1114
Hide product option if option stock is 0

Hi,
I'm looking for a solution to hide the product options in the view product that have a stock of 0.
I use stock quantities for sizes of clothing but do not want the option to be available if the stock is 0.

Any ideas?

Many thanks

Jump to post
  • Fri Oct 08, 2010 5:13 pm
  • Replies 3
  • Views 1114
Re: Coupon to discount non sale items only?

Thanks for your reply Q, im affraid it had no effect at all.

Jump to post
  • Mon Jul 19, 2010 1:48 am
  • Replies 2
  • Views 508
Coupon to discount non sale items only?

Is there a way for the coupon to discount non sale items only?
I am running 1.4.8b and my coupons work fine.
I can only image that an if statement comes in to the coupon calculation however i have no idea where to start.

Many thanks

Jump to post
  • Mon Jul 19, 2010 12:57 am
  • Replies 2
  • Views 508
Re: Subtotal array in cart module

Glad we got there in the end, it all makes sense in the end.
Cheers

Jump to post
  • Sat Jul 17, 2010 3:47 am
  • Replies 38
  • Views 12799
Re: Subtotal array in cart module

now i really have got it lol. this is the only code you need in the header.tpl <?php if ($products) { ?> <br /> <div style="text-align: right;"><a href="index.php?route=checkout/cart" alt="Shopping Bag">Shopping Bag (<?php echo $this->cart->countProducts(); ?>)</a></div> <?php $count=count($totals);...

Jump to post
  • Fri Jul 16, 2010 6:43 am
  • Replies 38
  • Views 12799
Re: Subtotal array in cart module

I will be able to sort the vat and discount how ever the way I will suggest will only work for the discount code you have now and if you were to add more discount codes it will require you to add more code to the header.

I will be home in about an hour so I will post it then.

Jump to post
  • Fri Jul 16, 2010 1:47 am
  • Replies 38
  • Views 12799
Re: Subtotal array in cart module

So am I right in thinking that the total is right now you just need to hide the vat and coupon amounts now? And how many discount codes have you got?

Jump to post
  • Thu Jul 15, 2010 10:56 pm
  • Replies 38
  • Views 12799
Re: Subtotal array in cart module

I think the code will do what you want, have you tried it. It worked for me

Jump to post
  • Thu Jul 15, 2010 9:17 pm
  • Replies 38
  • Views 12799
Re: Subtotal array in cart module

On another note you need to dissable ajax in admin for the cart as you have no ajax code in your header.

Jump to post
  • Thu Jul 15, 2010 4:27 pm
  • Replies 38
  • Views 12799
Re: Subtotal array in cart module

if you want to show the overall subtotal of the cart including any deductions and including the shipping. In header.tpl Change <?php if ($total['title'] != 'Total:') { ?> To <?php if ($total['title'] != 'Sub-Total:') { ?> this will still show the additional coupons but we'll deal with that if the to...

Jump to post
  • Thu Jul 15, 2010 4:18 pm
  • Replies 38
  • Views 12799
Re: Subtotal array in cart module

It shouldn't do as it's only controlling what gets displayed in the header

Jump to post
  • Thu Jul 15, 2010 9:00 am
  • Replies 38
  • Views 12799
Re: Subtotal array in cart module

ok so i think ive got it. In header.tpl copy the code below and replace your current code, where it says flat shipping rate replace the "Flat Shipping Rate:" with what it saying for your shipping exactly. <?php foreach ($totals as $total) { ?>       <?php if ($total['title'] != 'Total:') { ?>       ...

Jump to post
  • Thu Jul 15, 2010 4:55 am
  • Replies 38
  • Views 12799
Re: Subtotal array in cart module

in controller/common/header.php try deleting $taxes from the query as the tax and shipping is loaded from this i think.

Scrap that idea it doesn't work

Jump to post
  • Thu Jul 15, 2010 4:32 am
  • Replies 38
  • Views 12799
Re: Subtotal array in cart module

in your header.tpl put <?php foreach ($totals as $total) { ?> <?php if ($total['title'] != 'Sub-Total:') { ?> <?php echo $total['text']; ?> <?php } ?> <?php } ?> Instead of the code <?php foreach ($totals as $total) { ?> <?php echo $total['text']; ?> <?php } ?> I'm not going to release this as a mod...

Jump to post
  • Thu Jul 15, 2010 3:12 am
  • Replies 38
  • Views 12799
Re: Subtotal array in cart module

i think this is the code you require (i may be wrong but you could try it)

Code: Select all

<?php echo $this->cart->countProducts(); ?>

Jump to post
  • Thu Jul 15, 2010 2:08 am
  • Replies 38
  • Views 12799
Re: Subtotal array in cart module

I'm sorry but I don't know how to add the header cart as well as the side cart. I would imagine you have to call the mysql query in the header controller. Maybe someone could suggest how to do it.

Jump to post
  • Thu Jul 15, 2010 12:38 am
  • Replies 38
  • Views 12799
Re: Subtotal array in cart module

Sorry I forgot to mention that you need to go into admin and change the position of the cart to header not left or right

Jump to post
  • Wed Jul 14, 2010 10:36 pm
  • Replies 38
  • Views 12799

Search found 34 matches