fix(storefront): remove inquiry price everywhere and fix mobile add to cart button visibility
Deploy Canina / deploy (push) Successful in 3m41s
E2E Playwright Tests / Run Full E2E & Security Suites (push) Failing after 6s

This commit is contained in:
parsa aghaei committed 2026-09-13 08:49:06 +03:30
1 parent 8e4ee9849c
commit ef0731ffac
20 files changed
+6762 -6227

No files matched your search

@@ -199,10 +199,8 @@ const ArchiveProductCard: React.FC<{ product: Product }> = ({ product }) => {
<div className="mt-auto flex items-center justify-between pt-4 border-t border-medical-gray-50 gap-2 flex-wrap sm:flex-nowrap">
<div className="shrink-0">
{showPrices ? (
{showPrices && (
<span className="font-black text-medical-gray-900 font-vazir text-sm sm:text-base whitespace-nowrap">{product.price}</span>
) : (
<span className="text-xs font-bold text-amber-600 bg-amber-50 px-2 py-1 rounded-md whitespace-nowrap inline-block">تماس جهت استعلام قیمت</span>
)}
</div>
@@ -376,10 +374,8 @@ const ArchiveProductListItem: React.FC<{ product: Product }> = ({ product }) =>
{/* Price & Add to Cart */}
<div className="mt-2 flex items-center justify-between pt-2 border-t border-medical-gray-100/70 gap-2 flex-wrap sm:flex-nowrap">
<div className="shrink-0">
{showPrices ? (
{showPrices && (
<span className="font-black text-medical-gray-900 font-vazir text-xs sm:text-sm whitespace-nowrap">{product.price}</span>
) : (
<span className="text-[10px] font-bold text-amber-600 bg-amber-50 px-1.5 py-0.5 rounded whitespace-nowrap inline-block">تماس جهت استعلام قیمت</span>
)}
</div>
@@ -183,6 +183,11 @@ export default function MobileBottomNav({
}
};
const isProductDetailPage = pathname.startsWith("/shop/") && pathname !== "/shop";
if (isProductDetailPage) {
return null;
}
const totalCartItems = isMounted ? getTotalItems() : 0;
const isHomeActive = pathname === "/";
const isShopActive = pathname.startsWith("/shop") || activeSheet === "shop";
@@ -1340,7 +1340,7 @@ export default function ProductPage({ productSlug }: { productSlug: string }) {
className="w-full flex items-center justify-center gap-2 px-4 bg-canina-blue text-white rounded-2xl h-16 font-black text-sm hover:bg-canina-dark transition-all shadow-xl shadow-canina-blue/20 font-vazir"
>
<Phone className="w-5 h-5" />
<span>مشاوره تخصصی و استعلام ({getText('contact_phone', '۰۲۱-۸۸۸۸۴۴۴۴')})</span>
<span>مشاوره تخصصی با کارشناسان ({getText('contact_phone', '۰۲۱-۸۸۸۸۴۴۴۴')})</span>
</a>
</div>
)
@@ -1548,7 +1548,7 @@ export default function ProductPage({ productSlug }: { productSlug: string }) {
</AnimatePresence>
{/* Mobile Floating Sticky Bottom Buy Bar */}
<div className="lg:hidden fixed bottom-0 left-0 right-0 z-40 bg-white border-t border-medical-gray-200 p-3 shadow-2xl flex items-center justify-between gap-3 font-vazir" dir="rtl">
<div className="lg:hidden fixed bottom-0 left-0 right-0 z-50 bg-white/95 backdrop-blur-md border-t border-medical-gray-200 p-3 pb-safe shadow-2xl flex items-center justify-between gap-3 font-vazir" dir="rtl">
{!isCatalogHidePrices ? (
<div>
<span className="text-[10px] text-medical-gray-400 font-bold block">قیمت نهایی</span>
@@ -1581,7 +1581,7 @@ export default function ProductPage({ productSlug }: { productSlug: string }) {
className="flex-1 bg-canina-blue text-white py-2.5 px-3 rounded-xl font-black text-xs hover:bg-canina-dark transition-all flex items-center justify-center gap-1.5 shadow-md shadow-canina-blue/20 whitespace-nowrap"
>
<Phone className="w-4 h-4" />
مشاوره و استعلام
مشاوره تخصصی
</a>
)
) : isOutOfStock ? (