feat(catalog/maintenance): add granular sub-settings for Catalog Mode and Maintenance Page redirect [TASK-17.1]
This commit is contained in:
1 parent
ce36d7ab38
commit
2f37d0a92c
4 files changed
+67
-4
No files matched your search
@@ -162,8 +162,12 @@ const ArchiveProductCard: React.FC<{ product: Product }> = ({ product }) => {
|
||||
</div>
|
||||
|
||||
<div className="mt-auto flex items-center justify-between pt-4 border-t border-medical-gray-50 gap-2">
|
||||
<span className="font-black text-medical-gray-900 font-vazir text-sm sm:text-base">{product.price}</span>
|
||||
{(() => {
|
||||
{!useSettingsStore.getState().getText("catalog_hide_prices", "false").includes("true") ? (
|
||||
<span className="font-black text-medical-gray-900 font-vazir text-sm sm:text-base">{product.price}</span>
|
||||
) : (
|
||||
<span className="text-xs font-bold text-amber-600 bg-amber-50 px-2 py-1 rounded-md">تماس جهت استعلام قیمت</span>
|
||||
)}
|
||||
{!useSettingsStore.getState().getText("catalog_disable_cart", "false").includes("true") && (() => {
|
||||
const cartItem = useCartStore.getState().items.find(i => i.product.id === product.id);
|
||||
if (cartItem && cartItem.quantity > 0) {
|
||||
return (
|
||||
|
||||
Reference in new issue
Block a user