Welcome, Guest
Username: Password: Remember me

TOPIC: can't disable stock level

can't disable stock level 3 years 5 months ago #4548

  • ponpe
  • ponpe's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 6
  • Karma: 0
can't disable stock level in product detail page.

Hello,
i can't disable to hide the stock level in product detail page. please advise. here's my test site.
http://xn--42cg3b4cva8a4a7b0e0d.net/2013/shop-store/%E0%B9%80%E0%B8%84%E0%B8%A3%E0%B8%B7%E0%B9%88%E0%B8%AD%E0%B8%87%E0%B8%A7%E0%B8%B1%E0%B8%94%E0%B8%84%E0%B8%A7%E0%B8%B2%E0%B8%A1%E0%B8%AB%E0%B8%A7%E0%B8%B2%E0%B8%99/%E0%B9%80%E0%B8%84%E0%B8%A3%E0%B8%B7%E0%B9%88%E0%B8%AD%E0%B8%87%E0%B8%A7%E0%B8%B1%E0%B8%94%E0%B8%84%E0%B8%A7%E0%B8%B2%E0%B8%A1%E0%B8%AB%E0%B8%A7%E0%B8%B2%E0%B8%99-rhb-18atc-detail.html


This image is hidden for guests. Please log in or register to see it.



i saw in the virtuemart forum. i seems i need your support. Right?

forum.virtuemart.net/index.php?topic=102934.0
The administrator has disabled public write access.

Re: can't disable stock level 3 years 5 months ago #4555

  • trungdt
  • trungdt's Avatar
  • OFFLINE
  • Administrator
  • Posts: 2287
  • Thank you received: 997
  • Karma: 121
Hello,

You should edit default.php file in folder templates\ot_caraccessories\html\com_virtuemart\productdetails and remove this code below:
<div class="product-in-stock">
					<?php echo $this->product->product_in_stock . JText::_('TPL_OT_ITEM_IN_STOCK'); ?>
				</div>
The administrator has disabled public write access.

Re: can't disable stock level 3 years 5 months ago #4557

  • ponpe
  • ponpe's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 6
  • Karma: 0
thanks for prompt support. it works now.

however, i have other questions. i enable "call for price , when the price is empty". it works on "category browse page",but it doesn't work "on product detail page". it can buy the product with empty price. Could you help?


This image is hidden for guests. Please log in or register to see it.


This image is hidden for guests. Please log in or register to see it.
The administrator has disabled public write access.

Re: can't disable stock level 3 years 5 months ago #4568

  • trungdt
  • trungdt's Avatar
  • OFFLINE
  • Administrator
  • Posts: 2287
  • Thank you received: 997
  • Karma: 121
Hello,

You should find and edit code as below:
<?php // Product Price
				if ($this->show_prices and (empty($this->product->images[0]) or $this->product->images[0]->file_is_downloadable == 0)) { ?>
					<?php echo $this->loadTemplate('showprices');?>
				<?php } else echo JText::_ ('COM_VIRTUEMART_PRODUCT_ASKPRICE');?>

Regards
The administrator has disabled public write access.

Re: can't disable stock level 3 years 5 months ago #4569

  • ponpe
  • ponpe's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 6
  • Karma: 0
sorry, i doesn't work. please help.
The administrator has disabled public write access.

Re: can't disable stock level 3 years 5 months ago #4583

  • trungdt
  • trungdt's Avatar
  • OFFLINE
  • Administrator
  • Posts: 2287
  • Thank you received: 997
  • Karma: 121
Send me ftp account plz, so i can edit that file.

Regards
The administrator has disabled public write access.

Re: can't disable stock level 3 years 5 months ago #4588

  • ponpe
  • ponpe's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 6
  • Karma: 0
i already sent to your email. please check.

thanks.
The administrator has disabled public write access.

Re: can't disable stock level 3 years 5 months ago #4590

  • trungdt
  • trungdt's Avatar
  • OFFLINE
  • Administrator
  • Posts: 2287
  • Thank you received: 997
  • Karma: 121
Hello,

Your problem was resolved by edit with this code:
<?php // Product Price
if ($this->show_prices and (empty($this->product->images[0]) or  this->product->images[0]->file_is_downloadable == 0)) { ?>
<?php echo $this->loadTemplate('showprices');?>
<?php } 
if (empty($product->prices['salesPrice']) and VmConfig::get ('askprice', 1) and  !$product->images[0]->file_is_downloadable) {
	echo JText::_('COM_VIRTUEMART_PRODUCT_ASKPRICE');
}?><br/>
The administrator has disabled public write access.

Re: can't disable stock level 3 years 5 months ago #4614

  • ponpe
  • ponpe's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 6
  • Karma: 0
hello
I check website. Problem was not solved. please check and help again.

http://xn--42cg3b4cva8a4a7b0e0d.net/2013/%E0%B9%80%E0%B8%84%E0%B8%A3%E0%B8%B7%E0%B9%88%E0%B8%AD%E0%B8%87%E0%B8%A7%E0%B8%B1%E0%B8%94%E0%B8%84%E0%B8%A7%E0%B8%B2%E0%B8%A1%E0%B8%AB%E0%B8%A7%E0%B8%B2%E0%B8%99/%E0%B9%80%E0%B8%84%E0%B8%A3%E0%B8%B7%E0%B9%88%E0%B8%AD%E0%B8%87%E0%B8%A7%E0%B8%B1%E0%B8%94%E0%B8%84%E0%B8%A7%E0%B8%B2%E0%B8%A1%E0%B8%AB%E0%B8%A7%E0%B8%B2%E0%B8%99-smart-1-detail.html
The administrator has disabled public write access.

Re: can't disable stock level 3 years 5 months ago #4619

  • trungdt
  • trungdt's Avatar
  • OFFLINE
  • Administrator
  • Posts: 2287
  • Thank you received: 997
  • Karma: 121
Hello,

It's showing "โทรสอบถามราคา" right ? so what's your other issue ?
The administrator has disabled public write access.

Re: can't disable stock level 3 years 5 months ago #4620

  • ponpe
  • ponpe's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 6
  • Karma: 0
"Add to Cart" shows on the detail page. it means customer can click to order and proceed an order with no price. Could you hide it?

This image is hidden for guests. Please log in or register to see it.
Last Edit: 3 years 5 months ago by ponpe.
The administrator has disabled public write access.

Re: can't disable stock level 3 years 5 months ago #4621

  • trungdt
  • trungdt's Avatar
  • OFFLINE
  • Administrator
  • Posts: 2287
  • Thank you received: 997
  • Karma: 121
You can hide it in your VM setting.

Thanks
The administrator has disabled public write access.
Time to create page: 0.182 seconds