prestashop 隐藏 index.php,隐藏/显示Prestashop 1.5中某些产品的价格(Hide / Show prices of some products in Prestasho...

隐藏/显示Prestashop 1.5中某些产品的价格(Hide / Show prices of some products in Prestashop 1.5)

客户想要隐藏/显示某些产品(不是全部)的价格,我在prestashop 1.5.5.0中找不到这样的选项,是否有要安装的模块,或者解决此问题的方法?

谢谢,

A client wants to hide/show prices for some products (not all), I don't find such option in prestashop 1.5.5.0, Is there a module to install, or a way to fix this problem?

Thanks,

原文:https://stackoverflow.com/questions/42863231

更新时间:2020-09-19 11:09

最满意答案

Eyga4.png 我相信,对于那些产品,您可以编辑它们,并且在信息选项卡中,您可以选择“显示价格”,在您禁用“可用于订购”之后(因为您可以订购产品没有任何意义看不到价格 - 在这种情况下将价格设置为0)

Eyga4.pngI believe you can, for those products, edit them and in the informations tab you have the option to "show price", after you disabled the "available for order" (because it makes no sense to have a product available for order that you don't see the price - in this case set the price to 0)

2017-03-17

相关问答

你不需要一个模块。 如果购买产品的客户是注册客户并且您了解它们,则可以这样做: 创建单独的组,例如“我的客户”。 禁用其他组中的Show price选项。 将您的客户分配给该组( My customers )。 在这些步骤之后,其他访客将看不到价格,他们无法购买产品。 关于购买流程。 我会使用bankwire支付,只需将其重命名为“ Proceed to confirmation page然后您可以在客户确认订单时添加默认文本。 此外,我不认为客户显示总订单价格是一件大事,因为他们知道价格,只有这

...

您可以使用$this->context->customer->id_customer 。 如果用户未经过身份验证,它将为空 You can use $this->context->customer->id_customer. It will be empty if the user is not authenticated

以下作品: global $smarty;

global $cookie;

include(dirname(__FILE__).'/config/config.inc.php');

include(dirname(__FILE__).'/header.php');

$cookie = new Cookie('ps');

$id_client = $cookie->id_customer;

echo $id_client;

include(dirname(__FILE__).'/footer.

...

以这种方式修改函数Product :: getRandomSpecial中的查询(第一个$ sql) $sql = 'SELECT product_shop.id_product, IFNULL(product_attribute_shop.id_product_attribute,0) id_product_attribute

FROM

`'._DB_PREFIX_.'product_reductions` pr,

...

喜欢blocklanguages.tpl模块中的blocklanguages.tpl文件并检查代码: if count($languages) > 1

替换为 if count($languages) >= 1

我通过这个改变解决了同样的问题。 我希望这对某人也有帮助。 Fond blocklanguages.tpl file in blocklanguages module and check code: if count($languages) > 1

replace by if

...

以下代码将返回包含所有信息的数组: Shop::getShops();

The following code will return an array with all the information: Shop::getShops();

资源Product对Prestashop非常重要。 我已经快速检查了架构'概要'(... / api / products /?schema = synopsis)。 有12个字段标记为必填项! 在您的示例中,缺少默认的父类别,例如! 这就是为什么它不起作用的原因之一! The resource Product is kind of very important for Prestashop. I have checked quickly the schema 'synopsis' (.../ap

...

新产品查询基于ps_product表的date_add列。 这是用于模块blocknewproducts的函数: $newProducts = Product::getNewProducts((int) $this->context->language->id, 0, (int)Configuration::get('NEW_PRODUCTS_NBR'));

图像链接在Link类中构建。 你可以在这里找到详细的答案: Prestashop如何加载图像 祝你好运。 New products que

...

所以去客户 - >组,并为所有组选择价格显示HT。 问候, think I found the solution. In product.tpl, replace {convertPrice price=$productPrice|floatval}

...

我相信,对于那些产品,您可以编辑它们,并且在信息选项卡中,您可以选择“显示价格”,在您禁用“可用于订购”之后(因为您可以订购产品没有任何意义看不到价格 - 在这种情况下将价格设置为0) I believe you can, for those products, edit them and in the informations tab you have the option to "show price", after you disabled the "available for order"

...

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值