Usage

Prerequisities

To use console commands you need access to your server command line. The entry point of Joomla! Console is located in /cli subfolder of your Joomla! installation, and is executed like this: php cli/joomla.php when in Joomla! installation root folder.

It will show you list of available commands, and instructions how to use it. Further information could be found for example here.

Configuration

There are no special configuration options for this plugin.

Available commands

Attributes

Commands related to attributes.

Aliases

Validate aliases for all attributes (checks if aliases contains just allowed characters, useful after batch SQL import):

php cli/joomla.php phocacart:attributes:aliases

Regenerate aliases for all attributes from their titles:

php cli/joomla.php phocacart:attributes:aliases --from-title

Replace

Removes 'whatever':

php cli/joomla.php phocacart:attributes:replace whatever

Replaces 'John Doe' text to 'Jane Doe':

php cli/joomla.php phocacart:attributes:replace "John Doe" "Jane Doe"

Note

Replacement occurs in title in all attributes.

Translate

Translate untranslated fields in all attributes to all languages:

php cli/joomla.php phocacart:attributes:translate

Translate untranslated fields in all attributes only to cs-CZ:

php cli/joomla.php phocacart:attributes:translate --language=cs-CZ

Translate all fields, overwrite old translations in all attributes:

php cli/joomla.php phocacart:attributes:translate --overwrite

Note

Translation occurs in title in all attributes. Aliases are generated automatically from translated title.

Important

n3t Translate plugin need to be installed for this command.

Attribute values

Commands related to attribute values.

Aliases

Validate aliases for all attribute values (checks if aliases contains just allowed characters, useful after batch SQL import):

php cli/joomla.php phocacart:attributevalues:aliases

Regenerate aliases for all attribute values from their titles:

php cli/joomla.php phocacart:attributevalues:aliases --from-title

Replace

Removes 'whatever':

php cli/joomla.php phocacart:attributevalues:replace whatever

Replaces 'John Doe' text to 'Jane Doe':

php cli/joomla.php phocacart:attributevalues:replace "John Doe" "Jane Doe"

Note

Replacement occurs in title in all attributes.

Translate

Translate untranslated fields in all attribute values to all languages:

php cli/joomla.php phocacart:attributevalues:translate

Translate untranslated fields in all attribute values only to cs-CZ:

php cli/joomla.php phocacart:attributevalues:translate --language=cs-CZ

Translate all fields, overwrite old translations in all attribute values:

php cli/joomla.php phocacart:attributevalues:translate --overwrite

Note

Translation occurs in title in all attribute values. Aliases are generated automatically from translated title.

Important

n3t Translate plugin need to be installed for this command.

Categories

Commands related to categories.

Aliases

Validate aliases for all categories (checks if aliases contains just allowed characters, useful after batch SQL import):

php cli/joomla.php phocacart:categories:aliases

Regenerate aliases for all categories from their titles:

php cli/joomla.php phocacart:categories:aliases --from-title

Clean Html

Cleans Html code in description (removes style, class, id attributes, inline JavaScript events, script, style, span and font elements, strips empty div, strong, span, em, b and i elements and decodes HTML entitites):

php cli/joomla.php phocacart:categories:cleanhtml

Products Count

Recalculate products count for all categories:

php cli/joomla.php phocacart:categories:productscount

Recreate Thumbnails

Recreate thumbnails for all categories:

php cli/joomla.php phocacart:categories:recreatethumbnails

Replace

Removes 'whatever':

php cli/joomla.php phocacart:categories:replace whatever

Replaces 'John Doe' text to 'Jane Doe':

php cli/joomla.php phocacart:categories:replace "John Doe" "Jane Doe"

Replaces links to example.com to another.com using regular expression:

php cli/joomla.php phocacart:categories:replace --regex "~https?://(www.)?example.com~" "https://www.another.com"

Replaces bold texts to underline texts:

php cli/joomla.php phocacart:categories:replace --regex "~<strong>(.*?)</strong>~si" "<u>$1</u>"

Note

Replacement occurs in title, long title, feed title, description, META title, META description and META keywords in all categories.

Translate

Translate untranslated fields in all categories to all languages:

php cli/joomla.php phocacart:categories:translate

Translate untranslated fields in all categories only to cs-CZ:

php cli/joomla.php phocacart:categories:translate --language=cs-CZ

Translate all fields, overwrite old translations in all categories:

php cli/joomla.php phocacart:categories:translate --overwrite

Note

Translation occurs in title, long title, feed title, description, META title, META description and META keywords in all categories. Aliases are generated automatically from translated title.

Important

n3t Translate plugin need to be installed for this command.

Coupons

Commands related to coupons.

Aliases

Validate aliases for all coupons (checks if aliases contains just allowed characters, useful after batch SQL import):

php cli/joomla.php phocacart:coupons:aliases

Regenerate aliases for all coupons from their titles:

php cli/joomla.php phocacart:coupons:aliases --from-title

Clean Html

Cleans Html code in description, gift description and gift sender message:

php cli/joomla.php phocacart:coupons:cleanhtml
  • removes class, style, id and events on... attributes,
  • removes script, style, span and font tags
  • strips empty div, strong, span, em, b and i tags
  • decodes HTML entities

Replace

Removes 'whatever':

php cli/joomla.php phocacart:coupons:replace whatever

Replaces 'John Doe' text to 'Jane Doe':

php cli/joomla.php phocacart:coupons:replace "John Doe" "Jane Doe"

Replaces links to example.com to another.com using regular expression:

php cli/joomla.php phocacart:coupons:replace --regex "~https?://(www.)?example.com~" "https://www.another.com"

Replaces bold texts to underline texts:

php cli/joomla.php phocacart:coupons:replace --regex "~<strong>(.*?)</strong>~si" "<u>$1</u>"

Note

Replacement occurs in title, description, gift description and gift sender message in all coupons.

Translate

Translate untranslated fields in all coupons to all languages:

php cli/joomla.php phocacart:coupons:translate

Translate untranslated fields in all coupons only to cs-CZ:

php cli/joomla.php phocacart:coupons:translate --language=cs-CZ

Translate all fields, overwrite old translations in all coupons:

php cli/joomla.php phocacart:coupons:translate --overwrite

Note

Translation occurs in title, description, gift description and gift sender message in all coupons. Aliases are generated automatically from translated title.

Important

n3t Translate plugin need to be installed for this command.

Discounts

Commands related to discounts.

Aliases

Validate aliases for all discounts (checks if aliases contains just allowed characters, useful after batch SQL import):

php cli/joomla.php phocacart:discounts:aliases

Regenerate aliases for all discounts from their titles:

php cli/joomla.php phocacart:discounts:aliases --from-title

Clean Html

Cleans Html code in description:

php cli/joomla.php phocacart:discounts:cleanhtml
  • removes class, style, id and events on... attributes,
  • removes script, style, span and font tags
  • strips empty div, strong, span, em, b and i tags
  • decodes HTML entities

Replace

Removes 'whatever':

php cli/joomla.php phocacart:discounts:replace whatever

Replaces 'John Doe' text to 'Jane Doe':

php cli/joomla.php phocacart:discounts:replace "John Doe" "Jane Doe"

Replaces links to example.com to another.com using regular expression:

php cli/joomla.php phocacart:discounts:replace --regex "~https?://(www.)?example.com~" "https://www.another.com"

Replaces bold texts to underline texts:

php cli/joomla.php phocacart:discounts:replace --regex "~<strong>(.*?)</strong>~si" "<u>$1</u>"

Note

Replacement occurs in title and description in all discounts.

Translate

Translate untranslated fields in all discounts to all languages:

php cli/joomla.php phocacart:discounts:translate

Translate untranslated fields in all discounts only to cs-CZ:

php cli/joomla.php phocacart:discounts:translate --language=cs-CZ

Translate all fields, overwrite old translations in all discounts:

php cli/joomla.php phocacart:discounts:translate --overwrite

Note

Translation occurs in title and description in all discounts. Aliases are generated automatically from translated title.

Important

n3t Translate plugin need to be installed for this command.

Labels

Commands related to labels.

Aliases

Validate aliases for all labels (checks if aliases contains just allowed characters, useful after batch SQL import):

php cli/joomla.php phocacart:labels:aliases

Regenerate aliases for all labels from their titles:

php cli/joomla.php phocacart:labels:aliases --from-title

Products Count

Recalculate products count for all labels:

php cli/joomla.php phocacart:labels:productscount

Replace

Removes 'whatever':

php cli/joomla.php phocacart:labels:replace whatever

Replaces 'John Doe' text to 'Jane Doe':

php cli/joomla.php phocacart:labels:replace "John Doe" "Jane Doe"

Replaces links to example.com to another.com using regular expression:

php cli/joomla.php phocacart:labels:replace --regex "~https?://(www.)?example.com~" "https://www.another.com"

Note

Replacement occurs in title and description in all labels.

Translate

Translate untranslated fields in all labels to all languages:

php cli/joomla.php phocacart:labels:translate

Translate untranslated fields in all labels only to cs-CZ:

php cli/joomla.php phocacart:labels:translate --language=cs-CZ

Translate all fields, overwrite old translations in all labels:

php cli/joomla.php phocacart:labels:translate --overwrite

Note

Translation occurs in title and description in all labels. Aliases are generated automatically from translated title.

Important

n3t Translate plugin need to be installed for this command.

Manufacturers

Commands related to manufacturers.

Aliases

Validate aliases for all manufacturers (checks if aliases contains just allowed characters, useful after batch SQL import):

php cli/joomla.php phocacart:manufacturers:aliases

Regenerate aliases for all manufacturers from their titles:

php cli/joomla.php phocacart:manufacturers:aliases --from-title

Clean Html

Cleans Html code in description:

php cli/joomla.php phocacart:manufacturers:cleanhtml
  • removes class, style, id and events on... attributes,
  • removes script, style, span and font tags
  • strips empty div, strong, span, em, b and i tags
  • decodes HTML entities

Products Count

Recalculate products count for all manufacturers:

php cli/joomla.php phocacart:manufacturers:productscount

Replace

Removes 'whatever':

php cli/joomla.php phocacart:manufacturers:replace whatever

Replaces 'John Doe' text to 'Jane Doe':

php cli/joomla.php phocacart:manufacturers:replace "John Doe" "Jane Doe"

Replaces links to example.com to another.com using regular expression:

php cli/joomla.php phocacart:manufacturers:replace --regex "~https?://(www.)?example.com~" "https://www.another.com"

Replaces bold texts to underline texts:

php cli/joomla.php phocacart:manufacturers:replace --regex "~<strong>(.*?)</strong>~si" "<u>$1</u>"

Note

Replacement occurs in title, long title, description, META title, META description and META keywords in all manufacturers.

Translate

Translate untranslated fields in all manufacturers to all languages:

php cli/joomla.php phocacart:manufacturers:translate

Translate untranslated fields in all manufacturers only to cs-CZ:

php cli/joomla.php phocacart:manufacturers:translate --language=cs-CZ

Translate all fields, overwrite old translations in all manufacturers:

php cli/joomla.php phocacart:manufacturers:translate --overwrite

Note

Translation occurs in title, long title, description, META title, META description and META keywords in all manufacturers. Aliases are generated automatically from translated title.

Important

n3t Translate plugin need to be installed for this command.

Parameters

Commands related to parameters.

Aliases

Validate aliases for all parameters (checks if aliases contains just allowed characters, useful after batch SQL import):

php cli/joomla.php phocacart:parameters:aliases

Regenerate aliases for all parameters from their titles:

php cli/joomla.php phocacart:parameters:aliases --from-title

Clean Html

Cleans Html code in description:

php cli/joomla.php phocacart:parameters:cleanhtml
  • removes class, style, id and events on... attributes,
  • removes script, style, span and font tags
  • strips empty div, strong, span, em, b and i tags
  • decodes HTML entities

Products Count

Recalculate products count for all parameters values:

php cli/joomla.php phocacart:parameters:productscount

Replace

Removes 'whatever':

php cli/joomla.php phocacart:parameters:replace whatever

Replaces 'John Doe' text to 'Jane Doe':

php cli/joomla.php phocacart:parameters:replace "John Doe" "Jane Doe"

Replaces links to example.com to another.com using regular expression:

php cli/joomla.php phocacart:parameters:replace --regex "~https?://(www.)?example.com~" "https://www.another.com"

Replaces bold texts to underline texts:

php cli/joomla.php phocacart:parameters:replace --regex "~<strong>(.*?)</strong>~si" "<u>$1</u>"

Note

Replacement occurs in title, header title and description in all parameters.

Translate

Translate untranslated fields in all parameters to all languages:

php cli/joomla.php phocacart:parameters:translate

Translate untranslated fields in all parameters only to cs-CZ:

php cli/joomla.php phocacart:parameters:translate --language=cs-CZ

Translate all fields, overwrite old translations in all parameters:

php cli/joomla.php phocacart:parameters:translate --overwrite

Note

Translation occurs in title, header title and description in all parameters. Aliases are generated automatically from translated title.

Important

n3t Translate plugin need to be installed for this command.

Parameter values

Commands related to parameters values.

Aliases

Validate aliases for all parameter values (checks if aliases contains just allowed characters, useful after batch SQL import):

php cli/joomla.php phocacart:parametervalues:aliases

Regenerate aliases for all parameter values from their titles:

php cli/joomla.php phocacart:parametervalues:aliases --from-title

Replace

Removes 'whatever':

php cli/joomla.php phocacart:parametervalues:replace whatever

Replaces 'John Doe' text to 'Jane Doe':

php cli/joomla.php phocacart:parametervalues:replace "John Doe" "Jane Doe"

Note

Replacement occurs in title in all parameter values.

Translate

Translate untranslated fields in all parameter values to all languages:

php cli/joomla.php phocacart:parametervalues:translate

Translate untranslated fields in all parameter values only to cs-CZ:

php cli/joomla.php phocacart:parametervalues:translate --language=cs-CZ

Translate all fields, overwrite old translations in all parameter values:

php cli/joomla.php phocacart:parametervalues:translate --overwrite

Note

Translation occurs in title in all parameter values. Aliases are generated automatically from translated title.

Important

n3t Translate plugin need to be installed for this command.

Payments

Commands related to payments.

Aliases

Validate aliases for all payments (checks if aliases contains just allowed characters, useful after batch SQL import):

php cli/joomla.php phocacart:payments:aliases

Regenerate aliases for all payments from their titles:

php cli/joomla.php phocacart:payments:aliases --from-title

Clean Html

Cleans Html code in description:

php cli/joomla.php phocacart:payments:cleanhtml
  • removes class, style, id and events on... attributes,
  • removes script, style, span and font tags
  • strips empty div, strong, span, em, b and i tags
  • decodes HTML entities

Replace

Removes 'whatever':

php cli/joomla.php phocacart:payments:replace whatever

Replaces 'John Doe' text to 'Jane Doe':

php cli/joomla.php phocacart:payments:replace "John Doe" "Jane Doe"

Replaces links to example.com to another.com using regular expression:

php cli/joomla.php phocacart:payments:replace --regex "~https?://(www.)?example.com~" "https://www.another.com"

Replaces bold texts to underline texts:

php cli/joomla.php phocacart:payments:replace --regex "~<strong>(.*?)</strong>~si" "<u>$1</u>"

Note

Replacement occurs in title, description and description (info view) in all payments.

Translate

Translate untranslated fields in all payments to all languages:

php cli/joomla.php phocacart:payments:translate

Translate untranslated fields in all payments only to cs-CZ:

php cli/joomla.php phocacart:payments:translate --language=cs-CZ

Translate all fields, overwrite old translations in all payments:

php cli/joomla.php phocacart:payments:translate --overwrite

Note

Translation occurs in title, description and description (info view) in all payments. Aliases are generated automatically from translated title.

Important

n3t Translate plugin need to be installed for this command.

Products

Commands related to products.

Aliases

Validate aliases for all products (checks if aliases contains just allowed characters, useful after batch SQL import):

php cli/joomla.php phocacart:products:aliases

Regenerate aliases for all products from their titles:

php cli/joomla.php phocacart:products:aliases --from-title

Clean Html

Cleans Html code in description, long description and features:

php cli/joomla.php phocacart:products:cleanhtml
  • removes class, style, id and events on... attributes,
  • removes script, style, span and font tags
  • strips empty div, strong, span, em, b and i tags
  • decodes HTML entities

Recreate Thumbnails

Recreate thumbnails for all products:

php cli/joomla.php phocacart:products:recreatethumbnails

Recreate thumbnails for products from categories with ids 1 and 2 only:

php cli/joomla.php phocacart:products:recreatethumbnails --cat=1,2

Recreate thumbnails for products with ids 55 and 72 only:

php cli/joomla.php phocacart:products:recreatethumbnails --id=55,72

Replace

Removes 'whatever':

php cli/joomla.php phocacart:products:replace whatever

Replaces 'John Doe' text to 'Jane Doe':

php cli/joomla.php phocacart:products:replace "John Doe" "Jane Doe"

Replaces links to example.com to another.com using regular expression:

php cli/joomla.php phocacart:products:replace --regex "~https?://(www.)?example.com~" "https://www.another.com"

Replaces bold texts to underline texts:

php cli/joomla.php phocacart:products:replace --regex "~<strong>(.*?)</strong>~si" "<u>$1</u>"

Note

Replacement occurs in title, long title, description, long description, features, META title, META description and META keywords in all products.

Translate

Translate untranslated fields in all products to all languages:

php cli/joomla.php phocacart:products:translate

Translate untranslated fields in all products only to cs-CZ:

php cli/joomla.php phocacart:products:translate --language=cs-CZ

Translate all fields, overwrite old translations in all products:

php cli/joomla.php phocacart:products:translate --overwrite

Note

Translation occurs in title, long title, description, long description, features, META title, META description and META keywords in all products. Aliases are generated automatically from translated title.

Important

n3t Translate plugin need to be installed for this command.

Shippings

Commands related to shipping methods.

Aliases

Validate aliases for all shipping methods (checks if aliases contains just allowed characters, useful after batch SQL import):

php cli/joomla.php phocacart:shippings:aliases

Regenerate aliases for all shipping methods from their titles:

php cli/joomla.php phocacart:shippings:aliases --from-title

Clean Html

Cleans Html code in description:

php cli/joomla.php phocacart:shippings:cleanhtml
  • removes class, style, id and events on... attributes,
  • removes script, style, span and font tags
  • strips empty div, strong, span, em, b and i tags
  • decodes HTML entities

Replace

Removes 'whatever':

php cli/joomla.php phocacart:shippings:replace whatever

Replaces 'John Doe' text to 'Jane Doe':

php cli/joomla.php phocacart:shippings:replace "John Doe" "Jane Doe"

Replaces links to example.com to another.com using regular expression:

php cli/joomla.php phocacart:shippings:replace --regex "~https?://(www.)?example.com~" "https://www.another.com"

Replaces bold texts to underline texts:

php cli/joomla.php phocacart:shippings:replace --regex "~<strong>(.*?)</strong>~si" "<u>$1</u>"

Note

Replacement occurs in title, description, description (info view), tracking title and tracking description in all shipping methods.

Translate

Translate untranslated fields in all shipping methods to all languages:

php cli/joomla.php phocacart:shippings:translate

Translate untranslated fields in all shipping methods only to cs-CZ:

php cli/joomla.php phocacart:shippings:translate --language=cs-CZ

Translate all fields, overwrite old translations in all shipping methods:

php cli/joomla.php phocacart:shippings:translate --overwrite

Note

Translation occurs in title, description, description (info view), tracking title and tracking description in all shipping methods. Aliases are generated automatically from translated title.

Important

n3t Translate plugin need to be installed for this command.

Specification groups

Commands related to specification groups.

Aliases

Validate aliases for all specification groups (checks if aliases contains just allowed characters, useful after batch SQL import):

php cli/joomla.php phocacart:specificationgroups:aliases

Regenerate aliases for all specification groups from their titles:

php cli/joomla.php phocacart:specificationgroups:aliases --from-title

Replace

Removes 'whatever':

php cli/joomla.php phocacart:specificationgroups:replace whatever

Replaces 'John Doe' text to 'Jane Doe':

php cli/joomla.php phocacart:specificationgroups:replace "John Doe" "Jane Doe"

Note

Replacement occurs in title in all specification groups.

Translate

Translate untranslated fields in all specification groups to all languages:

php cli/joomla.php phocacart:specificationgroups:translate

Translate untranslated fields in all specification groups only to cs-CZ:

php cli/joomla.php phocacart:specificationgroups:translate --language=cs-CZ

Translate all fields, overwrite old translations in all specification groups:

php cli/joomla.php phocacart:specificationgroups:translate --overwrite

Note

Translation occurs in title in all specification groups. Aliases are generated automatically from translated title.

Important

n3t Translate plugin need to be installed for this command.

Specifications

Commands related to specifications.

Aliases

Validate aliases and value aliases for all specifications (checks if aliases contains just allowed characters, useful after batch SQL import):

php cli/joomla.php phocacart:specifications:aliases

Regenerate aliases for all specifications from their titles:

php cli/joomla.php phocacart:specifications:aliases --from-title

Replace

Removes 'whatever':

php cli/joomla.php phocacart:specifications:replace whatever

Replaces 'John Doe' text to 'Jane Doe':

php cli/joomla.php phocacart:specifications:replace "John Doe" "Jane Doe"

Note

Replacement occurs in title and value in all specifications.

Translate

Translate untranslated fields in all specifications to all languages:

php cli/joomla.php phocacart:specifications:translate

Translate untranslated fields in all specifications only to cs-CZ:

php cli/joomla.php phocacart:specifications:translate --language=cs-CZ

Translate all fields, overwrite old translations in all specification:

php cli/joomla.php phocacart:specifications:translate --overwrite

Note

Translation occurs in title and value in all specifications. Aliases are generated automatically from translated title.

Important

n3t Translate plugin need to be installed for this command.

Tags

Commands related to tags.

Aliases

Validate aliases for all tags (checks if aliases contains just allowed characters, useful after batch SQL import):

php cli/joomla.php phocacart:tags:aliases

Regenerate aliases for all tags from their titles:

php cli/joomla.php phocacart:tags:aliases --from-title

Products Count

Recalculate products count for all tags:

php cli/joomla.php phocacart:tags:productscount

Replace

Removes 'whatever':

php cli/joomla.php phocacart:tags:replace whatever

Replaces 'John Doe' text to 'Jane Doe':

php cli/joomla.php phocacart:tags:replace "John Doe" "Jane Doe"

Replaces links to example.com to another.com using regular expression:

php cli/joomla.php phocacart:tags:replace --regex "~https?://(www.)?example.com~" "https://www.another.com"

Note

Replacement occurs in title and description in all tags.

Translate

Translate untranslated fields in all tags to all languages:

php cli/joomla.php phocacart:tags:translate

Translate untranslated fields in all tags only to cs-CZ:

php cli/joomla.php phocacart:tags:translate --language=cs-CZ

Translate all fields, overwrite old translations in all tags:

php cli/joomla.php phocacart:tags:translate --overwrite

Note

Translation occurs in title and description in all tags. Aliases are generated automatically from translated title.

Important

n3t Translate plugin need to be installed for this command.

Taxes

Commands related to taxes.

Aliases

Validate aliases for all taxes (checks if aliases contains just allowed characters, useful after batch SQL import):

php cli/joomla.php phocacart:taxes:aliases

Regenerate aliases for all taxes from their titles:

php cli/joomla.php phocacart:taxes:aliases --from-title

Replace

Removes 'whatever':

php cli/joomla.php phocacart:taxes:replace whatever

Replaces 'John Doe' text to 'Jane Doe':

php cli/joomla.php phocacart:taxes:replace "John Doe" "Jane Doe"

Note

Replacement occurs in title in all taxes.

Translate

Translate untranslated fields in all taxes to all languages:

php cli/joomla.php phocacart:taxes:translate

Translate untranslated fields in all taxes only to cs-CZ:

php cli/joomla.php phocacart:taxes:translate --language=cs-CZ

Translate all fields, overwrite old translations in all taxes:

php cli/joomla.php phocacart:taxes:translate --overwrite

Note

Translation occurs in title in all taxes. Aliases are generated automatically from translated title.

Important

n3t Translate plugin need to be installed for this command.