-
Posts
43 -
Joined
-
Last visited
About AmirRzd

- Birthday 11/04/1987
Contact Methods
- Website
Profile Information
-
Location
Tehran, Iran
-
Interests
Flying with my own wings and problem solving.
-
First Name
Amirhossein
-
Last Name
Rezazadeh
Recent Profile Visitors
1,273 profile views
AmirRzd's Achievements
-
AmirRzd started following Admin login loop, can't get the admin panel and How to show Price only if user is Logged In?
-
As mentioned in PrestaShop customer group section: PrestaShop has three default customer groups: Visitor - All persons without a customer account or customers that are not logged in. Guest - All persons who placed an order through Guest Checkout. Customer - All persons who created an account on this site. [and logged in] So PrestaShop can determine if a customer is logged in or not with this built-in feature. No coding needed. So to hide prices for not logged in visitors, simply: Go to Shop Parameters > Customer Settings > Groups (tab) Edit "Visitor" group Set "Show prices" to "NO" Save Like the image below: The result when the visitor is not logged in: When the customer is logged in: The following instruction is optional: Now if you want to inform your visitors/customers that they need to login to see the prices depending on your theme you can set a banner or a text block informing them and make that module hidden for "Customer" group. In the default classic theme: Go to Design > Position and click on the "Transplant a module" blue button In the "Module" field search for "Custom Text Block" or "Banner" In the "Transplant to" field search for "displayTop" or any other hook you prefer. Click on "Save" Now you need to create a proper content (an HTML Text or a Banner). I explain the Custom text module: Go to Modules > Module Manager Search for "Custom Text Block" Enable it if it is disabled and then click "Configure" Provide a proper information for visitors (Not logged in users). For example: "To see the prices, please login to your account. If you do not have an account you can create a new one here." And you can link the words to the log in page. Save Then you need to hide this block for logged in customers: Go to Shop Parameters > Customer Settings > Groups (tab) Edit "Customer" group In the "Authorized modules" section, set the "Custom Text Block" module to "NO" Save Now what visitors (not logged in) will see: And what customers (logged in) will see: All of this with no need to edit codes, just with some configurations. I hope it helps.
-
Admin login loop, can't get the admin panel
AmirRzd replied to alfreshco's topic in Installing PrestaShop for the first time
Hello @oktu.it Did you try the solution that worked for me? In the 'ps_configuration' table (via phpMyAdmin), I changed the 'value' of 'PS_SSL_ENABLED' and 'PS_SSL_ENABLED_EVERYWHERE' from 0 to 1. -
Admin login loop, can't get the admin panel
AmirRzd replied to alfreshco's topic in Installing PrestaShop for the first time
I installed PS 1.7.8.7 on subdirectory demo.mydomain.com/ps1787 and SSL was enabled on my domain demo.mydomain.com. I chose "Not to enabled SSL" in the installation process. Then I had the "Admin Login Loop" problem in Google Chrome (V. 107.0.5304.106) but not on FireFox (V. 106.0.3). I needed to solve this problem so I tried several suggestions in different topics: 1. Renaming gamification module folder 2. Disabling the IP check in classes/Cookie.php (this can causes many issues with dynamics IP) : in isLoggedBack(), remove or comment the fourth condition: && (!isset($this->_content['remote_addr']) OR $this->_content['remote_addr'] == ip2long(Tools::getRemoteAddr()) OR !Configuration::get('PS_COOKIE_CHECKIP')) 3. Making the expire time shorter for cookies (IE can have issues with longest time cookies) : in classes/Cookie.php constructor, setting: $this->_expire = isset($expire) ? (int)($expire) : (time() + 3600); instead of $this->_expire = isset($expire) ? (int)($expire) : (time() + 1728000); 4. Setting PS_COOKIE_LIFETIME_BO to 480 and PS_COOKIE_CHECKIP to 0 None of them worked for me and I reverted all the changes. None of them were tested simultaneously! The solution that worked for me: In the 'ps_configuration' table (via phpMyAdmin), I changed the 'value' of 'PS_SSL_ENABLED' and 'PS_SSL_ENABLED_EVERYWHERE' from 0 to 1. I have no idea why this worked for me. I would appreciate if anyone explains this. -
[solved]error 500 during 1.7 installation
AmirRzd replied to ChDUP's topic in Installing PrestaShop for the first time
I used Incognito and it worked! I don't know yet what in my Chrome browser is causing the problem. -
I used Incognito and it worked! I don't know yet what in my Chrome browser is causing the problem.
- 13 replies
-
- parsererror
- installation
-
(and 2 more)
Tagged with:
-
cornel ochieng started following AmirRzd
-
بهتره که سوالات جدید رو تاپیک جدید باز کنید. ماژول پرستاپی از پرستافا که در فراکت قابل دسترسه در حال حاضر بهترین انتخاب برای ماژول پرداخته از نظر من. آی پرستا هم یه ماژول پرداخت داره. انکدهای این مشکلی ایجاد نمیکنه نگرانشون نباشید. ولی همیشه از سایتهای معتبر ماژول و قالب بخرید / دانلود کنید.
-
نه داستان که نیست چون تو ایران کپی رایت رعایت نمیشه. تیکت بزنید بهشون.
-
توصیه میکنم زمانی که به صورت کامل به جدول ها و رابطه هاشون آشنایی ندارید چیزی رو مستقیم از یک جدول جدف نکنید به پرستافا در فراکت تیکت بزنید و این موضوع رو از اون ها جویا بشید. ماژولشون کد شده است و فقط خودشون میدونن که چطوری این کار قابل انجامه.
-
چه مشکلی ایجاد کرده این پلاگین یا واحد پولی؟
-
AmirRzd started following Şahin YILDIZ
-
AmirRzd started following MahmutGulerce
-
مشکلات پرستاشاپ پس از بازگردانی فول بکاپ
AmirRzd replied to master_hesam's topic in انجمن فارسی [Persian]
دوست عزیز پیشنهاد میکنم در انجمن فارسی به دوستان فارسی زبان پاسخ فارسی ارسال کنید. -
مشکل در ترکیب بالا و تاثیر آن بر قیمت
AmirRzd replied to koroshcomputer's topic in انجمن فارسی [Persian]
سلام این شیوه کار اشتباهه. هم از لحاظ سیستمی و هم از لحاظ تجربه کاربری. برای هر کدوم از این ها یک محصول جدا ایجاد کنید. مشتری وقتی توی شاخه است باید تمام محصولات شما رو ببینه. -
دیباگ رو روشن کنید تا ببینید چه خطایی وجود داره. روشن کردن دیباگ در پرستاشاپ رو گوگل کنید.
-
ماژول پرستاپلاس رو نصب کنید. پلاگین تومان رو فعال کنید. نیاز به دستکاری فایل ها نیست.
- 8 replies
-
- prestashop 1.7
- toman
-
(and 1 more)
Tagged with: