Skip to content

Commit

Permalink
Merge pull request #1216 from scottcwilson/tweaks
Browse files Browse the repository at this point in the history
Small improvements
  • Loading branch information
scottcwilson committed Apr 2, 2024
2 parents 35507c7 + 23b871b commit bafa4e4
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 12 deletions.
8 changes: 4 additions & 4 deletions content/dev/code/158_language_files.md
Expand Up @@ -49,18 +49,18 @@ Using arrays allows for the following kinds of behavior:

In the process of doing this work, the language files were reviewed for duplicates, and consolidation was done where appropriate to reduce the burden on translators. So some constant definitions have moved or been renamed - be sure to apply your changes and customizations with this in mind.

### Loading a language file
### Loading a language file from a Plugin

If you need to specifically include a **core** language file, logic that was used in Zen Cart 1.5.7 and before:
If you need to specifically include a **core** language file, logic that was used in Zen Cart 1.5.7 and before was:

```
$langfile = DIR_WS_LANGUAGES . $_SESSION['language'] . '/modules/order_total/' . 'ot_group_pricing.php';
include_once ($langfile);
```

needs to be migrated for 1.5.8 and above, because both the filename and the structure of this core file have changed. The old file is simply not there any more, it has been migrated to `lang.ot_group_pricing.php`.
This needs to be updated for 1.5.8 and above, because both the filename and the structure of this core file have changed. The old file (`ot_group_pricing.php`) is simply not there any more, it has been migrated to `lang.ot_group_pricing.php`.

However, plugin authors may want to make their code compatible with both 1.5.7 and 1.5.8. Here's one approach for manually loading a language file in both old and new formats, which also allows for template overrides:
Plugin authors may want to make their code compatible with both 1.5.7 and 1.5.8. Here's one approach for manually loading a language file in both old and new formats, which also allows for template overrides:

```
$filename = 'ot_group_pricing.php';
Expand Down
10 changes: 6 additions & 4 deletions content/user/admin_pages/catalog/product_types_edit_layout.md
Expand Up @@ -20,19 +20,21 @@ There are also settings that control the meta data which is shown on the product

- To turn off the inclusion of product price in the `<title>` tag, click `Product page <title> tag - default: use Product Price`, click the dropdown and select `False`, and then press `Update`.

### Issue: I am turning off the display of fields in Layout Settings, but they are still displayed on my product info page.
## Issue: Field still shows on Product Info
<b>Q: I am turning off the display of fields in Layout Settings, but they are still displayed on my product info page. Why?</b>

This can occur when template authors choose not to respect the flags that Zen Cart uses. To fix this, edit `includes/templates/YOURTEMPLATE/templates/tpl_product_info_display.php` and modify the code that handles the display of the field you wish to turn off.

If you are a developer, see [technical information on product types](/dev/code/product_types/).

### Issue: I have suppressed the display fields on the Product Info page, but they are still showing on the listing pages.
## Issue: Field still shows on Listing Pages
<b>Q: I have suppressed the display fields on the Product Info page, but they are still showing on the listing pages. Why?</b>

#### Guidance for Zen Cart v2.x.x:
### Guidance for Zen Cart v2.x.x:
The switches for New, All and Featured listing pages, as well as
the switches for the [Product Listing pages](/user/storefront_pages/product_listing/) are provided on the [product listing configuration page](/user/admin_pages/configuration/configuration_productlisting/) in Admin > Configuration > Product Listing.

#### Guidance for Zen Cart v1.x.x:
### Guidance for Zen Cart v1.x.x:
There are separate switches for the New, All and Featured listing pages, which are shown in [new/featured/all products listing page configuration](/user/template/new_featured_all_listing_page_configuration/).

The switches for the [Product Listing pages](/user/storefront_pages/product_listing/) are provided on the [product listing configuration page](/user/admin_pages/configuration/configuration_productlisting/) in Admin > Configuration > Product Listing.
Expand Down
6 changes: 3 additions & 3 deletions content/user/payment/square.md
Expand Up @@ -6,8 +6,8 @@ weight: 10
---

There are two Square modules for Zen Cart:
- A newer one, based on the Square Web Payments API, which is currently available as the [Square Web Payments API plugin](https://www.zen-cart.com/downloads.php?do=file&id=2345).
- An older one, based on the Square Payments Form library. This was built in to Zen Cart from 1.5.5 to 1.5.7. Please note this library has been deprecated by Square, and the older module ceased to work in late 2022. The [Square Payments Form documentation](/user/payment/square_payments_form/) is maintained for historical purposes.
- A newer module, based on the Square Web Payments API, which is currently available as the [Square Web Payments API plugin](https://www.zen-cart.com/downloads.php?do=file&id=2345).
- An older module, based on the Square Payments Form library. This module was built in to Zen Cart from 1.5.5 to 1.5.8. However, Square has deprecated this library, so the older module no longer works. The [Square Payments Form documentation](/user/payment/square_payments_form/) is maintained for historical purposes.

This page is about the newer module, Square Web Pay.

Expand All @@ -16,7 +16,7 @@ The newer Square module is available in the Plugins library as [Square Web Payme


![Square Modules](/images/square_payment_modules.png)
- The top one ("Square") is the old Square module.
- The top one ("Square") is the old deprecated Square module.
- The bottom ("Square WebPay") one is the new Square module.

## Requirements
Expand Down
4 changes: 3 additions & 1 deletion content/user/template/product_listing_page_configuration.md
Expand Up @@ -40,5 +40,7 @@ The "Display" controls described above indicate whether a particular field is sh

This behavior may be modified by changing the template file `includes/modules/YOURTEMPLATE/product_listing.php`.

Note that since Zen Cart 2.0.0, the New Products, Featured Products, All Products and Specials pages have been configured the same as product listing pages.
In Zen Cart 1.x.x, the New Products, Featured Products, All Products and Specials pages are configured differently - see [New Listing - Featured Listing - All Listing configuration settings for Zen Cart v1.x.x](/user/template/new_featured_all_listing_page_configuration_v1/).

Note that since Zen Cart 2.0.0, the New Products, Featured Products, All Products and Specials pages have been configured the same as product listing pages. See [Listing Configuration Settings](/user/template/new_featured_all_listing_page_configuration/).

0 comments on commit bafa4e4

Please sign in to comment.