Only the first letter of a product description appears in zen cart - zen-cart

I'm working on this zen cart site. A Love Supreme Shop
In new and featured listings only the first letter of the product description appears whether I use a custom template or the default. I'm using 1.3.9 but the data has come from a 1.3.0 site.
When product descriptions are shown on all products they show up fine.
Is the description being put into an array incorrectly and only the first element of the array being displayed?

Go to admin->configuration->new listing, and look at the value of Display Product Description. I wonder if yours is 0. It should be 120 or 150. If you don't see this setting, your database is missing values.
Failing that look at the file
includes/templates/YOUR_TEMPLATE/templates/tpl_modules_products_new_listing.php
and see how description is being handled.

Thanks Scott that helped me get to the root of the problem :
On my admin->configuration->new listing->Display Product Description page there is no textbox to change the number of characters displayed.
There is only a question :
Do you want to display the Product Description - First 150 characters?
Followed by the options 0 = off and 1 = on
I checked another zen cart running on another server and it has the textbox to change the number of characters.
I followed your instructions to look at :
includes/templates/YOUR_TEMPLATE/templates/tpl_modules_products_new_listing.php
I edited the code that displays the product description replacing the value PRODUCT_NEW_LIST_DESCRIPTION with 150.
This worked.
However the underlying problem is solved here :
Solution on Zen Cart Forum
SELECT *
FROM configuration
WHERE configuration_title = 'display product description';
This returns 4 records
Changing configuration_value from 1 to 150
Changing configuration_description from :
Do you want to display the Product Description - First 150
characters?
to :
Do you want to display the Product Description?0= OFF150= Suggested Length, or enter the maximum number of characters to display
and changing the set_function from :
zen_cfg_select_option(array('0', '1'),
to :
NULL
Thanks for the assistance #Scott Wilson.
Still don't know the route cause of the problem. Probably not migrating the database properly.

Related

Change Company Field Label to something else

Using Magento 2.3 Community
At checkout when adding a new address, I need to rename the Company Field Label to something else, how can I achieve that? Also this field appears under my account, edit shipping address. How can I change that label as well? I dont care how it is stored in the database, I just want the label to change.
This should be easy to do :
Step 1 : login to admin dashbroad
Step 2 : go to Stores-> Attributes-> Customer Address.
Step 3 : you will see all fields in the forms there. Click on the field you want to change, you will be editing page then you can change the label to what you want.
Cheers.
If you're looking for a quick and easy solution, you can do it via Theme Translation, this will change the text per your store locale.
For your currently active theme:
Create file:
app\design\frontend\VENDOR\THEME_NAME\i18n\en_US.csv
(change filename based on your locale, en_US is default)
Example:
"Company","Something else"
Note: this will also change the label in the customer account area when creating a new address from there.
https://devdocs.magento.com/guides/v2.3/frontend-dev-guide/translations/xlate.html

Fetch data from a website using LibreOffice Calc

I'm searching for a way to fetch some data from a website using LibreOffice Calc.
The website URL is: https://www.foresteu.com/termekeink//34653258430-abs-elzaro-kronospan-1543mm-k105-fp-raw-endgrain-oak
Treid to fetch the H3 Title already =FILTERXML(WEBSERVICE("https://www.foresteu.com/termekeink//34653258430-abs-elzaro-kronospan-1543mm-k105-fp-raw-endgrain-oak"),"//h3") but i get #VALUE!as result.
I would love to get h3 title and product properties: Cikkszám: 34653258430 Anyag: MŰANYAG Szélesség: 43 Szín: FAUTÁNZAT Vastagság: 1,5 separated into cells like: Cikkszám: 34653258430 Anyag: MŰANYAG Szélesség: 43 Szín: FAUTÁNZAT Vastagság: 1,5
I am using latest version of LibreOffice Calc. Thank you!
FILTERXML is only for XML not HTML.
Even xpath=//h3 won't work.
But you can try the following, use the menu item :
Insert
Link to external data
Type in or paste the URL of the Web page hit ENTER, wait a few seconds, set the parameters in the appeared small panel, then choose a tab from the resulting table, Click on OK.
If the Web table is HTML based, the data will appeared. But when the table was made with other technology, the data link will not work.

typo3: what is the fast way to find which page has certain extension

I want to find which page has installed this extension: jc_register, I can check every page, but it takes too much time since there are many pages, so I wonder if there is any fast way to find it instead of checking every page?
If you mean you want to find a content record of type "Insert Plugin" set to a particular extension, you can use "Admin tools".
Open "Admin Tools -> DB check".
Select "Full search" from the drop-down list.
Select "Advanced query".
Tick "Use formatted strings, labels and dates instead of original values for results". This will give you page titles in the results when pid is displayed.
Set the query so that it finds your plugin and lists the page IDs (which means that the "Select fields" must contain pid).
Note: Tested in TYPO3 4.5 LTS and might not work in later versions.
Hi the extension name is located in "tt_content.list_type" field. So something like this should help you:
SELECT tt_content.pid,pages.title
FROM tt_content JOIN pages ON tt_content.pid = pages.uid
WHERE tt_content.list_type LIKE '%register%'
ORDER BY tt_content.uid DESC
gl
If you need to do it more often, you might consider the extension backendtools: http://typo3.org/extensions/repository/view/backendtools
It offers an extension listing with search functionality and links to the according page.

How to make multistep forms with drupal using various node types

I'm creating a very basic classifieds website. In this website i'll have various content-types; such as :
Car (which has the cck fields : year, kilometers, color
House (which has the cck fields : number of floors, garden (yes/no)
So each 'element' is a content-type.
I'm listing all the content-types in a view that I display to the user aand then clicking on a link goes to 'create content type of type (clicked type)'.
It's working pretty well; but i can't get rid of the 'create new car' at the top of the create page (which reflects the 'drupalish' behaviour).
I'd like to have it in a more conveniant way such as a three step form like :
Choose category
Choose your options
Register to post your new classified
I've seen the ctools; which provide 'almost' the multistep behaviour; however i can't imagine having all my dozen content-types being 'hardcoded' in a single module.
I wonder if anyone has achieved this kind of setup or if there's a kind of module that can do the trick. I'd like to keep a content type for each type of classified (the webmaster is now used to the interface).
Any help, starting points would be appreciated.
For the first step we had to solve a simular problem. To do so we created what was basicly an override of the /node/add page (the one that lists all the content types), which you've done. To change the title the simplest is to create a yourtheme_preprocess_page() function that changes the title when the url is /node/add or node/*/edit
However: I would strongly suggest switching to a system that uses 1 content type for all listings. We created a very simular site, and after working with different content types it because clear that having 1 content type with fields that were displayed conditionally was a much more sane solution. Using categories for the different product types, and then using the Conditional Fields module to hide and show the correct fields worked much better.
http://drupal.org/project/conditional_fields
Here is and example snippet for setting the title in a page preprocess function:
Setting the title on the node/add page:
if (arg(0) == 'node' && arg(1) == 'add' && arg(2) == '') {
$vars['title'] = 'Choose an Industry';
$vars['head_title'] = $vars['title'] . " | " . variable_get('site_name', "Industry Trader");
}

How to add a simple text label in a jqGrid form?

When using the Add or Edit form from the pager I'm wondering how a simple static label can be added in the form without it creating any additional columns in it's affect on colNames[]'s and colModel[]'s. For example I have a quite simple typical Add form which opens from the pager containing a few label's and form elements: Name, Email, Web Site, etc., and then the lower section of the form has a few drop down menus containing the number 1 through 10 with the idea being to ask the user to pick a value between 1 and 10 to put a value on the importance to them about the product or service which is listed beside it. Just above this section I want to add some text only to give a brief instruction asking the user to "Choose the importance of the following products and services using the scale: [1=Low interest --- 10=Very high interest]". I cannot figure out how to get a text label inserted in the form without having to define a column with a formoption{} etc which is not needed for just some descriptive text. I know about the "bottominfo: 'some text'" for adding text to the bottom of the form but I need to insert some text similar to that mid-way (or other positions) in the form without it affecting the tabular structure of the grid. Is this even possible? TIA.
You can modify Edit or Add forms inside of afterShowForm. The ids of the form fields are like "tr_Name". There consist from "tr_" prefix and the corresponding column name.
I modified the code example from my old answer so that in the Add dialod there exist an additional line with the bold text "Additional Information:". In the "Edit" dialog (like one want in the original question) the input field for one column is disabled. You can see the example live here. I hope that a working code example can say more as a lot of words.