It looks like this is a web page, not a feed. I looked for a feed associated with this page, but couldn't find one. Please enter the address of your feed to validate.

Source: https://forum.phparea.com/thread/how-to-get-product-name-in-magento-2

  1. <!doctype html>
  2. <html data-n-head-ssr>
  3.  <head >
  4.    <meta data-n-head="ssr" charset="utf-8"><meta data-n-head="ssr" name="viewport" content="width=device-width, initial-scale=1"><meta data-n-head="ssr" property="twitter:title" content="How to get product name in Magento 2?"><meta data-n-head="ssr" property="twitter:description" content="How to get product name in Magento 2?"><meta data-n-head="ssr" property="og:title" content="How to get product name in Magento 2?"><meta data-n-head="ssr" property="og:url" content="https://forum.phparea.com/thread/how-to-get-product-name-in-magento-2"><meta data-n-head="ssr" property="og:description" content="How to get product name in Magento 2?"><meta data-n-head="ssr" property="og:site_name" content="PHP Developers Community"><meta data-n-head="ssr" data-hid="description" name="description" content="How to get product name in Magento 2?"><title>How to get product name in Magento 2?</title><link data-n-head="ssr" rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Roboto"><link data-n-head="ssr" rel="stylesheet" href="https://forum-static.fra1.cdn.digitaloceanspaces.com/css/2fe5b8c0-2cde-4171-9f29-c802ff745139/custom.css"><link data-n-head="ssr" rel="icon" type="image/png" href="https://forum-static.fra1.cdn.digitaloceanspaces.com/images/2fe5b8c0-2cde-4171-9f29-c802ff745139/favicon.png"><link data-n-head="ssr" data-hid="i18n-can" rel="canonical" href="https://forum.phparea.com/thread/how-to-get-product-name-in-magento-2"><style data-n-head="vuetify" type="text/css" id="vuetify-theme-stylesheet" nonce="undefined">.v-application a { color: #1976d2; }
  5. .v-application .primary {
  6.  background-color: #1976d2 !important;
  7.  border-color: #1976d2 !important;
  8. }
  9. .v-application .primary--text {
  10.  color: #1976d2 !important;
  11.  caret-color: #1976d2 !important;
  12. }
  13. .v-application .primary.lighten-5 {
  14.  background-color: #c7fdff !important;
  15.  border-color: #c7fdff !important;
  16. }
  17. .v-application .primary--text.text--lighten-5 {
  18.  color: #c7fdff !important;
  19.  caret-color: #c7fdff !important;
  20. }
  21. .v-application .primary.lighten-4 {
  22.  background-color: #a8e0ff !important;
  23.  border-color: #a8e0ff !important;
  24. }
  25. .v-application .primary--text.text--lighten-4 {
  26.  color: #a8e0ff !important;
  27.  caret-color: #a8e0ff !important;
  28. }
  29. .v-application .primary.lighten-3 {
  30.  background-color: #8ac5ff !important;
  31.  border-color: #8ac5ff !important;
  32. }
  33. .v-application .primary--text.text--lighten-3 {
  34.  color: #8ac5ff !important;
  35.  caret-color: #8ac5ff !important;
  36. }
  37. .v-application .primary.lighten-2 {
  38.  background-color: #6aaaff !important;
  39.  border-color: #6aaaff !important;
  40. }
  41. .v-application .primary--text.text--lighten-2 {
  42.  color: #6aaaff !important;
  43.  caret-color: #6aaaff !important;
  44. }
  45. .v-application .primary.lighten-1 {
  46.  background-color: #488fef !important;
  47.  border-color: #488fef !important;
  48. }
  49. .v-application .primary--text.text--lighten-1 {
  50.  color: #488fef !important;
  51.  caret-color: #488fef !important;
  52. }
  53. .v-application .primary.darken-1 {
  54.  background-color: #005eb6 !important;
  55.  border-color: #005eb6 !important;
  56. }
  57. .v-application .primary--text.text--darken-1 {
  58.  color: #005eb6 !important;
  59.  caret-color: #005eb6 !important;
  60. }
  61. .v-application .primary.darken-2 {
  62.  background-color: #00479b !important;
  63.  border-color: #00479b !important;
  64. }
  65. .v-application .primary--text.text--darken-2 {
  66.  color: #00479b !important;
  67.  caret-color: #00479b !important;
  68. }
  69. .v-application .primary.darken-3 {
  70.  background-color: #003180 !important;
  71.  border-color: #003180 !important;
  72. }
  73. .v-application .primary--text.text--darken-3 {
  74.  color: #003180 !important;
  75.  caret-color: #003180 !important;
  76. }
  77. .v-application .primary.darken-4 {
  78.  background-color: #001e67 !important;
  79.  border-color: #001e67 !important;
  80. }
  81. .v-application .primary--text.text--darken-4 {
  82.  color: #001e67 !important;
  83.  caret-color: #001e67 !important;
  84. }
  85. .v-application .secondary {
  86.  background-color: #424242 !important;
  87.  border-color: #424242 !important;
  88. }
  89. .v-application .secondary--text {
  90.  color: #424242 !important;
  91.  caret-color: #424242 !important;
  92. }
  93. .v-application .secondary.lighten-5 {
  94.  background-color: #c1c1c1 !important;
  95.  border-color: #c1c1c1 !important;
  96. }
  97. .v-application .secondary--text.text--lighten-5 {
  98.  color: #c1c1c1 !important;
  99.  caret-color: #c1c1c1 !important;
  100. }
  101. .v-application .secondary.lighten-4 {
  102.  background-color: #a6a6a6 !important;
  103.  border-color: #a6a6a6 !important;
  104. }
  105. .v-application .secondary--text.text--lighten-4 {
  106.  color: #a6a6a6 !important;
  107.  caret-color: #a6a6a6 !important;
  108. }
  109. .v-application .secondary.lighten-3 {
  110.  background-color: #8b8b8b !important;
  111.  border-color: #8b8b8b !important;
  112. }
  113. .v-application .secondary--text.text--lighten-3 {
  114.  color: #8b8b8b !important;
  115.  caret-color: #8b8b8b !important;
  116. }
  117. .v-application .secondary.lighten-2 {
  118.  background-color: #727272 !important;
  119.  border-color: #727272 !important;
  120. }
  121. .v-application .secondary--text.text--lighten-2 {
  122.  color: #727272 !important;
  123.  caret-color: #727272 !important;
  124. }
  125. .v-application .secondary.lighten-1 {
  126.  background-color: #595959 !important;
  127.  border-color: #595959 !important;
  128. }
  129. .v-application .secondary--text.text--lighten-1 {
  130.  color: #595959 !important;
  131.  caret-color: #595959 !important;
  132. }
  133. .v-application .secondary.darken-1 {
  134.  background-color: #2c2c2c !important;
  135.  border-color: #2c2c2c !important;
  136. }
  137. .v-application .secondary--text.text--darken-1 {
  138.  color: #2c2c2c !important;
  139.  caret-color: #2c2c2c !important;
  140. }
  141. .v-application .secondary.darken-2 {
  142.  background-color: #171717 !important;
  143.  border-color: #171717 !important;
  144. }
  145. .v-application .secondary--text.text--darken-2 {
  146.  color: #171717 !important;
  147.  caret-color: #171717 !important;
  148. }
  149. .v-application .secondary.darken-3 {
  150.  background-color: #000000 !important;
  151.  border-color: #000000 !important;
  152. }
  153. .v-application .secondary--text.text--darken-3 {
  154.  color: #000000 !important;
  155.  caret-color: #000000 !important;
  156. }
  157. .v-application .secondary.darken-4 {
  158.  background-color: #000000 !important;
  159.  border-color: #000000 !important;
  160. }
  161. .v-application .secondary--text.text--darken-4 {
  162.  color: #000000 !important;
  163.  caret-color: #000000 !important;
  164. }
  165. .v-application .accent {
  166.  background-color: #82b1ff !important;
  167.  border-color: #82b1ff !important;
  168. }
  169. .v-application .accent--text {
  170.  color: #82b1ff !important;
  171.  caret-color: #82b1ff !important;
  172. }
  173. .v-application .accent.lighten-5 {
  174.  background-color: #ffffff !important;
  175.  border-color: #ffffff !important;
  176. }
  177. .v-application .accent--text.text--lighten-5 {
  178.  color: #ffffff !important;
  179.  caret-color: #ffffff !important;
  180. }
  181. .v-application .accent.lighten-4 {
  182.  background-color: #f8ffff !important;
  183.  border-color: #f8ffff !important;
  184. }
  185. .v-application .accent--text.text--lighten-4 {
  186.  color: #f8ffff !important;
  187.  caret-color: #f8ffff !important;
  188. }
  189. .v-application .accent.lighten-3 {
  190.  background-color: #daffff !important;
  191.  border-color: #daffff !important;
  192. }
  193. .v-application .accent--text.text--lighten-3 {
  194.  color: #daffff !important;
  195.  caret-color: #daffff !important;
  196. }
  197. .v-application .accent.lighten-2 {
  198.  background-color: #bce8ff !important;
  199.  border-color: #bce8ff !important;
  200. }
  201. .v-application .accent--text.text--lighten-2 {
  202.  color: #bce8ff !important;
  203.  caret-color: #bce8ff !important;
  204. }
  205. .v-application .accent.lighten-1 {
  206.  background-color: #9fccff !important;
  207.  border-color: #9fccff !important;
  208. }
  209. .v-application .accent--text.text--lighten-1 {
  210.  color: #9fccff !important;
  211.  caret-color: #9fccff !important;
  212. }
  213. .v-application .accent.darken-1 {
  214.  background-color: #6596e2 !important;
  215.  border-color: #6596e2 !important;
  216. }
  217. .v-application .accent--text.text--darken-1 {
  218.  color: #6596e2 !important;
  219.  caret-color: #6596e2 !important;
  220. }
  221. .v-application .accent.darken-2 {
  222.  background-color: #467dc6 !important;
  223.  border-color: #467dc6 !important;
  224. }
  225. .v-application .accent--text.text--darken-2 {
  226.  color: #467dc6 !important;
  227.  caret-color: #467dc6 !important;
  228. }
  229. .v-application .accent.darken-3 {
  230.  background-color: #2364aa !important;
  231.  border-color: #2364aa !important;
  232. }
  233. .v-application .accent--text.text--darken-3 {
  234.  color: #2364aa !important;
  235.  caret-color: #2364aa !important;
  236. }
  237. .v-application .accent.darken-4 {
  238.  background-color: #004c90 !important;
  239.  border-color: #004c90 !important;
  240. }
  241. .v-application .accent--text.text--darken-4 {
  242.  color: #004c90 !important;
  243.  caret-color: #004c90 !important;
  244. }
  245. .v-application .error {
  246.  background-color: #ff5252 !important;
  247.  border-color: #ff5252 !important;
  248. }
  249. .v-application .error--text {
  250.  color: #ff5252 !important;
  251.  caret-color: #ff5252 !important;
  252. }
  253. .v-application .error.lighten-5 {
  254.  background-color: #ffe4d5 !important;
  255.  border-color: #ffe4d5 !important;
  256. }
  257. .v-application .error--text.text--lighten-5 {
  258.  color: #ffe4d5 !important;
  259.  caret-color: #ffe4d5 !important;
  260. }
  261. .v-application .error.lighten-4 {
  262.  background-color: #ffc6b9 !important;
  263.  border-color: #ffc6b9 !important;
  264. }
  265. .v-application .error--text.text--lighten-4 {
  266.  color: #ffc6b9 !important;
  267.  caret-color: #ffc6b9 !important;
  268. }
  269. .v-application .error.lighten-3 {
  270.  background-color: #ffa99e !important;
  271.  border-color: #ffa99e !important;
  272. }
  273. .v-application .error--text.text--lighten-3 {
  274.  color: #ffa99e !important;
  275.  caret-color: #ffa99e !important;
  276. }
  277. .v-application .error.lighten-2 {
  278.  background-color: #ff8c84 !important;
  279.  border-color: #ff8c84 !important;
  280. }
  281. .v-application .error--text.text--lighten-2 {
  282.  color: #ff8c84 !important;
  283.  caret-color: #ff8c84 !important;
  284. }
  285. .v-application .error.lighten-1 {
  286.  background-color: #ff6f6a !important;
  287.  border-color: #ff6f6a !important;
  288. }
  289. .v-application .error--text.text--lighten-1 {
  290.  color: #ff6f6a !important;
  291.  caret-color: #ff6f6a !important;
  292. }
  293. .v-application .error.darken-1 {
  294.  background-color: #df323b !important;
  295.  border-color: #df323b !important;
  296. }
  297. .v-application .error--text.text--darken-1 {
  298.  color: #df323b !important;
  299.  caret-color: #df323b !important;
  300. }
  301. .v-application .error.darken-2 {
  302.  background-color: #bf0025 !important;
  303.  border-color: #bf0025 !important;
  304. }
  305. .v-application .error--text.text--darken-2 {
  306.  color: #bf0025 !important;
  307.  caret-color: #bf0025 !important;
  308. }
  309. .v-application .error.darken-3 {
  310.  background-color: #9f0010 !important;
  311.  border-color: #9f0010 !important;
  312. }
  313. .v-application .error--text.text--darken-3 {
  314.  color: #9f0010 !important;
  315.  caret-color: #9f0010 !important;
  316. }
  317. .v-application .error.darken-4 {
  318.  background-color: #800000 !important;
  319.  border-color: #800000 !important;
  320. }
  321. .v-application .error--text.text--darken-4 {
  322.  color: #800000 !important;
  323.  caret-color: #800000 !important;
  324. }
  325. .v-application .info {
  326.  background-color: #2196f3 !important;
  327.  border-color: #2196f3 !important;
  328. }
  329. .v-application .info--text {
  330.  color: #2196f3 !important;
  331.  caret-color: #2196f3 !important;
  332. }
  333. .v-application .info.lighten-5 {
  334.  background-color: #d4ffff !important;
  335.  border-color: #d4ffff !important;
  336. }
  337. .v-application .info--text.text--lighten-5 {
  338.  color: #d4ffff !important;
  339.  caret-color: #d4ffff !important;
  340. }
  341. .v-application .info.lighten-4 {
  342.  background-color: #b5ffff !important;
  343.  border-color: #b5ffff !important;
  344. }
  345. .v-application .info--text.text--lighten-4 {
  346.  color: #b5ffff !important;
  347.  caret-color: #b5ffff !important;
  348. }
  349. .v-application .info.lighten-3 {
  350.  background-color: #95e8ff !important;
  351.  border-color: #95e8ff !important;
  352. }
  353. .v-application .info--text.text--lighten-3 {
  354.  color: #95e8ff !important;
  355.  caret-color: #95e8ff !important;
  356. }
  357. .v-application .info.lighten-2 {
  358.  background-color: #75ccff !important;
  359.  border-color: #75ccff !important;
  360. }
  361. .v-application .info--text.text--lighten-2 {
  362.  color: #75ccff !important;
  363.  caret-color: #75ccff !important;
  364. }
  365. .v-application .info.lighten-1 {
  366.  background-color: #51b0ff !important;
  367.  border-color: #51b0ff !important;
  368. }
  369. .v-application .info--text.text--lighten-1 {
  370.  color: #51b0ff !important;
  371.  caret-color: #51b0ff !important;
  372. }
  373. .v-application .info.darken-1 {
  374.  background-color: #007cd6 !important;
  375.  border-color: #007cd6 !important;
  376. }
  377. .v-application .info--text.text--darken-1 {
  378.  color: #007cd6 !important;
  379.  caret-color: #007cd6 !important;
  380. }
  381. .v-application .info.darken-2 {
  382.  background-color: #0064ba !important;
  383.  border-color: #0064ba !important;
  384. }
  385. .v-application .info--text.text--darken-2 {
  386.  color: #0064ba !important;
  387.  caret-color: #0064ba !important;
  388. }
  389. .v-application .info.darken-3 {
  390.  background-color: #004d9f !important;
  391.  border-color: #004d9f !important;
  392. }
  393. .v-application .info--text.text--darken-3 {
  394.  color: #004d9f !important;
  395.  caret-color: #004d9f !important;
  396. }
  397. .v-application .info.darken-4 {
  398.  background-color: #003784 !important;
  399.  border-color: #003784 !important;
  400. }
  401. .v-application .info--text.text--darken-4 {
  402.  color: #003784 !important;
  403.  caret-color: #003784 !important;
  404. }
  405. .v-application .success {
  406.  background-color: #4caf50 !important;
  407.  border-color: #4caf50 !important;
  408. }
  409. .v-application .success--text {
  410.  color: #4caf50 !important;
  411.  caret-color: #4caf50 !important;
  412. }
  413. .v-application .success.lighten-5 {
  414.  background-color: #dcffd6 !important;
  415.  border-color: #dcffd6 !important;
  416. }
  417. .v-application .success--text.text--lighten-5 {
  418.  color: #dcffd6 !important;
  419.  caret-color: #dcffd6 !important;
  420. }
  421. .v-application .success.lighten-4 {
  422.  background-color: #beffba !important;
  423.  border-color: #beffba !important;
  424. }
  425. .v-application .success--text.text--lighten-4 {
  426.  color: #beffba !important;
  427.  caret-color: #beffba !important;
  428. }
  429. .v-application .success.lighten-3 {
  430.  background-color: #a2ff9e !important;
  431.  border-color: #a2ff9e !important;
  432. }
  433. .v-application .success--text.text--lighten-3 {
  434.  color: #a2ff9e !important;
  435.  caret-color: #a2ff9e !important;
  436. }
  437. .v-application .success.lighten-2 {
  438.  background-color: #85e783 !important;
  439.  border-color: #85e783 !important;
  440. }
  441. .v-application .success--text.text--lighten-2 {
  442.  color: #85e783 !important;
  443.  caret-color: #85e783 !important;
  444. }
  445. .v-application .success.lighten-1 {
  446.  background-color: #69cb69 !important;
  447.  border-color: #69cb69 !important;
  448. }
  449. .v-application .success--text.text--lighten-1 {
  450.  color: #69cb69 !important;
  451.  caret-color: #69cb69 !important;
  452. }
  453. .v-application .success.darken-1 {
  454.  background-color: #2d9437 !important;
  455.  border-color: #2d9437 !important;
  456. }
  457. .v-application .success--text.text--darken-1 {
  458.  color: #2d9437 !important;
  459.  caret-color: #2d9437 !important;
  460. }
  461. .v-application .success.darken-2 {
  462.  background-color: #00791e !important;
  463.  border-color: #00791e !important;
  464. }
  465. .v-application .success--text.text--darken-2 {
  466.  color: #00791e !important;
  467.  caret-color: #00791e !important;
  468. }
  469. .v-application .success.darken-3 {
  470.  background-color: #006000 !important;
  471.  border-color: #006000 !important;
  472. }
  473. .v-application .success--text.text--darken-3 {
  474.  color: #006000 !important;
  475.  caret-color: #006000 !important;
  476. }
  477. .v-application .success.darken-4 {
  478.  background-color: #004700 !important;
  479.  border-color: #004700 !important;
  480. }
  481. .v-application .success--text.text--darken-4 {
  482.  color: #004700 !important;
  483.  caret-color: #004700 !important;
  484. }
  485. .v-application .warning {
  486.  background-color: #ffc107 !important;
  487.  border-color: #ffc107 !important;
  488. }
  489. .v-application .warning--text {
  490.  color: #ffc107 !important;
  491.  caret-color: #ffc107 !important;
  492. }
  493. .v-application .warning.lighten-5 {
  494.  background-color: #ffffae !important;
  495.  border-color: #ffffae !important;
  496. }
  497. .v-application .warning--text.text--lighten-5 {
  498.  color: #ffffae !important;
  499.  caret-color: #ffffae !important;
  500. }
  501. .v-application .warning.lighten-4 {
  502.  background-color: #ffff91 !important;
  503.  border-color: #ffff91 !important;
  504. }
  505. .v-application .warning--text.text--lighten-4 {
  506.  color: #ffff91 !important;
  507.  caret-color: #ffff91 !important;
  508. }
  509. .v-application .warning.lighten-3 {
  510.  background-color: #ffff74 !important;
  511.  border-color: #ffff74 !important;
  512. }
  513. .v-application .warning--text.text--lighten-3 {
  514.  color: #ffff74 !important;
  515.  caret-color: #ffff74 !important;
  516. }
  517. .v-application .warning.lighten-2 {
  518.  background-color: #fff956 !important;
  519.  border-color: #fff956 !important;
  520. }
  521. .v-application .warning--text.text--lighten-2 {
  522.  color: #fff956 !important;
  523.  caret-color: #fff956 !important;
  524. }
  525. .v-application .warning.lighten-1 {
  526.  background-color: #ffdd37 !important;
  527.  border-color: #ffdd37 !important;
  528. }
  529. .v-application .warning--text.text--lighten-1 {
  530.  color: #ffdd37 !important;
  531.  caret-color: #ffdd37 !important;
  532. }
  533. .v-application .warning.darken-1 {
  534.  background-color: #e0a600 !important;
  535.  border-color: #e0a600 !important;
  536. }
  537. .v-application .warning--text.text--darken-1 {
  538.  color: #e0a600 !important;
  539.  caret-color: #e0a600 !important;
  540. }
  541. .v-application .warning.darken-2 {
  542.  background-color: #c18c00 !important;
  543.  border-color: #c18c00 !important;
  544. }
  545. .v-application .warning--text.text--darken-2 {
  546.  color: #c18c00 !important;
  547.  caret-color: #c18c00 !important;
  548. }
  549. .v-application .warning.darken-3 {
  550.  background-color: #a27300 !important;
  551.  border-color: #a27300 !important;
  552. }
  553. .v-application .warning--text.text--darken-3 {
  554.  color: #a27300 !important;
  555.  caret-color: #a27300 !important;
  556. }
  557. .v-application .warning.darken-4 {
  558.  background-color: #855a00 !important;
  559.  border-color: #855a00 !important;
  560. }
  561. .v-application .warning--text.text--darken-4 {
  562.  color: #855a00 !important;
  563.  caret-color: #855a00 !important;
  564. }</style><link rel="preload" href="https://pub-1e27250373774d6ca37239bbf5810b5c.r2.dev/assets/0.3/7b8ec9d.js" as="script"><link rel="preload" href="https://pub-1e27250373774d6ca37239bbf5810b5c.r2.dev/assets/0.3/25edc65.js" as="script"><link rel="preload" href="https://pub-1e27250373774d6ca37239bbf5810b5c.r2.dev/assets/0.3/css/1b7ab17.css" as="style"><link rel="preload" href="https://pub-1e27250373774d6ca37239bbf5810b5c.r2.dev/assets/0.3/863688a.js" as="script"><link rel="preload" href="https://pub-1e27250373774d6ca37239bbf5810b5c.r2.dev/assets/0.3/css/87b7056.css" as="style"><link rel="preload" href="https://pub-1e27250373774d6ca37239bbf5810b5c.r2.dev/assets/0.3/cb42003.js" as="script"><link rel="stylesheet" href="https://pub-1e27250373774d6ca37239bbf5810b5c.r2.dev/assets/0.3/css/1b7ab17.css"><link rel="stylesheet" href="https://pub-1e27250373774d6ca37239bbf5810b5c.r2.dev/assets/0.3/css/87b7056.css">
  565.  </head>
  566.  <body >
  567.    <div data-server-rendered="true" id="__nuxt"><!----><div id="__layout"><div data-app="true" id="app" class="v-application v-application--is-ltr theme--light" style="font-family:Roboto;"><div class="v-application--wrap"><div tabindex="0" aria-label="Loading" class="vld-overlay is-active is-full-page" style="z-index:999;display:none;"><div class="vld-background" style="background:#fff;opacity:0.5;"></div><div class="vld-icon"><svg viewBox="0 0 38 38" xmlns="http://www.w3.org/2000/svg" width="65" height="65" stroke="#1976d2"><g fill="none" fill-rule="evenodd"><g transform="translate(1 1)" stroke-width="2"><circle stroke-opacity=".25" cx="18" cy="18" r="18"></circle><path d="M36 18c0-9.94-8.06-18-18-18"><animateTransform attributeName="transform" type="rotate" from="0 18 18" to="360 18 18" dur="0.8s" repeatCount="indefinite"></animateTransform></path></g></g></svg></div></div> <!----> <div class="header-section"><header class="v-sheet theme--light elevation-3 v-toolbar v-app-bar v-app-bar--fixed" style="height:56px;margin-top:0px;transform:translateY(0px);left:0px;right:0px;"><div class="v-toolbar__content" style="height:56px;"><div class="row main-menu"><div role="dialog" class="v-dialog__container"><!----></div> <div role="dialog" class="v-dialog__container"><!----></div> <div class="d-none d-lg-flex d-xl-flex d-md-flex justify-space-between pb-5 col col-12"><div class="d-flex align-center col-md-2 col-lg-1 offset-lg-1 col-4"><a href="/" class="d-flex w-100 nuxt-link-active"><div class="logo d-flex w-100"><div aria-label="PHP Developers Community" role="img" class="v-image v-responsive theme--light" style="max-height:50px;"><div class="v-image__image v-image__image--preload v-image__image--contain" style="background-image:;background-position:center center;"></div><div class="v-responsive__content"></div></div></div></a></div> <!----> <div class="col-md-5 col-lg-5 offset-lg-1 col-4"><button type="button" class="v-btn v-btn--flat v-btn--icon v-btn--round theme--dark v-size--default primary--text"><span class="v-btn__content"><i aria-hidden="true" class="v-icon notranslate mdi mdi-magnify theme--dark"></i></span></button> <a href="/login" class="v-btn v-btn--contained v-btn--router theme--light v-size--default success"><span class="v-btn__content"><i aria-hidden="true" class="v-icon notranslate v-icon--left mdi mdi-message-question-outline theme--light"></i> <span class="d-none d-lg-flex d-xl-flex">Ask Question</span></span></a> <a href="/login" class="v-btn v-btn--depressed v-btn--flat v-btn--outlined v-btn--router theme--light v-size--default success--text"><span class="v-btn__content"><i aria-hidden="true" class="v-icon notranslate v-icon--left mdi mdi-login theme--light"></i><span class="d-none d-lg-flex d-xl-flex">Sign In</span></span></a> <a href="/register" class="v-btn v-btn--depressed v-btn--flat v-btn--outlined v-btn--router theme--light v-size--default info--text"><span class="v-btn__content"><i aria-hidden="true" class="v-icon notranslate v-icon--left mdi mdi-account-plus-outline theme--light"></i><span class="d-none d-lg-flex d-xl-flex">Sign Up</span></span></a></div></div> <nav class="hidden-md-and-up v-navigation-drawer v-navigation-drawer--close v-navigation-drawer--fixed v-navigation-drawer--is-mobile v-navigation-drawer--temporary theme--light" style="height:100vh;top:0px;transform:translateX(-100%);width:256px;"><div class="v-navigation-drawer__content"><div class="v-list v-sheet theme--light"><a href="/" tabindex="0" router="" class="v-list-item v-list-item--link theme--light"><div class="v-list-item__content"><div class="v-list-item__title">Home</div></div></a> <!----> <!----> <!----> <!---->  <a href="/login" tabindex="0" router="" class="v-list-item v-list-item--link theme--light"><div class="v-list-item__content"><div class="v-list-item__title">Sign In</div></div></a> <a href="/register" tabindex="0" router="" class="v-list-item v-list-item--link theme--light"><div class="v-list-item__content"><div class="v-list-item__title">Sign Up</div></div></a> <!----></div></div><div class="v-navigation-drawer__border"></div></nav> <header class="hidden-md-and-up v-sheet theme--light v-toolbar v-app-bar v-app-bar--fixed" style="height:56px;margin-top:0px;transform:translateY(0px);left:0px;right:0px;"><div class="v-toolbar__content" style="height:56px;"><div class="row align-center"><button type="button" class="v-app-bar__nav-icon v-btn v-btn--flat v-btn--icon v-btn--round theme--light v-size--default"><span class="v-btn__content"><i aria-hidden="true" class="v-icon notranslate mdi mdi-menu theme--light"></i></span></button> <div class="d-flex col-10 pr-0 align-center justify-end"><button type="button" class="v-btn v-btn--flat v-btn--icon v-btn--round theme--dark v-size--default primary--text"><span class="v-btn__content"><i aria-hidden="true" class="v-icon notranslate mdi mdi-magnify theme--dark"></i></span></button> <a href="/login" class="v-btn v-btn--flat v-btn--icon v-btn--round v-btn--router theme--light v-size--default success--text"><span class="v-btn__content"><i aria-hidden="true" class="v-icon notranslate mdi mdi-message-question-outline theme--light"></i></span></a> <div class="col-sm-3 col-md-3 col-4"><a href="/" class="nuxt-link-active"><div class="logo d-flex w-100"><div aria-label="PHP Developers Community" role="img" class="v-image v-responsive theme--light" style="max-height:50px;"><div class="v-responsive__sizer" style="padding-bottom:100%;"></div><div class="v-image__image v-image__image--preload v-image__image--contain" style="background-image:;background-position:center center;"></div><div class="v-responsive__content"></div></div></div></a></div></div></div></div></header></div></div></header></div> <div class="container"><!----> <div class="flex"><ul itemscope="itemscope" itemtype="http://schema.org/BreadcrumbList" class="v-breadcrumbs v-breadcrumbs--large theme--light"><li itemprop="itemListElement" itemscope="itemscope" itemtype="http://schema.org/ListItem"><a href="/" itemprop="item" class="v-breadcrumbs__item nuxt-link-active"><span itemprop="name">Home</span></a> <meta content="1" itemprop="position"></li><li class="v-breadcrumbs__divider">&gt;</li><li itemprop="itemListElement" itemscope="itemscope" itemtype="http://schema.org/ListItem"><a href="/forum/php-cms" itemprop="item" class="v-breadcrumbs__item"><span itemprop="name">PHP CMS</span></a> <meta content="2" itemprop="position"></li><li class="v-breadcrumbs__divider">&gt;</li><li itemprop="itemListElement" itemscope="itemscope" itemtype="http://schema.org/ListItem"><a href="#" itemprop="item" class="v-breadcrumbs__item v-breadcrumbs__item--disabled"><span itemprop="name">How to get product name in Magento 2?</span></a> <meta content="3" itemprop="position"></li></ul></div> <div class="row mx-0 mt-1"><div class="flex md4 lg3 xl2"><div><div class="row d-md-none justify-space-around"><div class="py-0 col-sm-10 col-md-8 col-12"><div class="px-1 transparent v-sheet theme--light"><div class="v-item-group theme--light v-slide-group v-chip-group"><div class="v-slide-group__prev v-slide-group__prev--disabled"><!----></div><div class="v-slide-group__wrapper"><div class="v-slide-group__content"><a href="/forum/php-general" tabindex="0" draggable="false" router="" class="v-chip v-chip--clickable v-chip--link v-chip--no-color theme--light v-size--default primary--text"><span class="v-chip__content"><i aria-hidden="true" class="v-icon notranslate mr-1 mdi mdi-comment-multiple-outline theme--light"></i>
  568.            PHP General
  569.          </span></a><a href="/forum/php-frameworks" tabindex="0" draggable="false" router="" class="v-chip v-chip--clickable v-chip--link v-chip--no-color theme--light v-size--default"><span class="v-chip__content"><i aria-hidden="true" class="v-icon notranslate mr-1 mdi mdi-comment-multiple-outline theme--light"></i>
  570.            PHP Frameworks
  571.          </span></a><a href="/forum/php-databases" tabindex="0" draggable="false" router="" class="v-chip v-chip--clickable v-chip--link v-chip--no-color theme--light v-size--default"><span class="v-chip__content"><i aria-hidden="true" class="v-icon notranslate mr-1 mdi mdi-comment-multiple-outline theme--light"></i>
  572.            PHP Databases
  573.          </span></a><a href="/forum/php-security" tabindex="0" draggable="false" router="" class="v-chip v-chip--clickable v-chip--link v-chip--no-color theme--light v-size--default"><span class="v-chip__content"><i aria-hidden="true" class="v-icon notranslate mr-1 mdi mdi-comment-multiple-outline theme--light"></i>
  574.            PHP Security
  575.          </span></a><a href="/forum/third-party-scripts" tabindex="0" draggable="false" router="" class="v-chip v-chip--clickable v-chip--link v-chip--no-color theme--light v-size--default"><span class="v-chip__content"><i aria-hidden="true" class="v-icon notranslate mr-1 mdi mdi-comment-multiple-outline theme--light"></i>
  576.            Third Party Scripts
  577.          </span></a><a href="/forum/php-cms" tabindex="0" draggable="false" router="" class="v-chip v-chip--clickable v-chip--link v-chip--no-color theme--light v-size--default"><span class="v-chip__content"><i aria-hidden="true" class="v-icon notranslate mr-1 mdi mdi-comment-multiple-outline theme--light"></i>
  578.            PHP CMS
  579.          </span></a><a href="/forum/javascript" tabindex="0" draggable="false" router="" class="v-chip v-chip--clickable v-chip--link v-chip--no-color theme--light v-size--default"><span class="v-chip__content"><i aria-hidden="true" class="v-icon notranslate mr-1 mdi mdi-comment-multiple-outline theme--light"></i>
  580.            Javascript
  581.          </span></a><a href="/forum/mysql" tabindex="0" draggable="false" router="" class="v-chip v-chip--clickable v-chip--link v-chip--no-color theme--light v-size--default"><span class="v-chip__content"><i aria-hidden="true" class="v-icon notranslate mr-1 mdi mdi-comment-multiple-outline theme--light"></i>
  582.            MySQL
  583.          </span></a><a href="/forum/html-and-css" tabindex="0" draggable="false" router="" class="v-chip v-chip--clickable v-chip--link v-chip--no-color theme--light v-size--default"><span class="v-chip__content"><i aria-hidden="true" class="v-icon notranslate mr-1 mdi mdi-comment-multiple-outline theme--light"></i>
  584.            HTML &amp; CSS
  585.          </span></a></div></div><div class="v-slide-group__next v-slide-group__next--disabled"><!----></div></div></div></div></div> <div class="row d-none d-lg-flex d-xl-flex d-md-flex pr-3"><div class="w-100 v-card v-sheet theme--light"><header class="v-sheet theme--dark v-toolbar info" style="height:56px;"><div class="v-toolbar__content" style="height:56px;"><div class="v-toolbar__title">Category</div></div></header> <div style="max-height:800px;overflow-y:auto;"><div><a href="/forum/php-general" tabindex="0" router="" class="word-break v-list-item v-list-item--link theme--light"><div class="v-list-item__icon"><i aria-hidden="true" class="v-icon notranslate mr-1 mdi mdi-comment-multiple-outline theme--light"></i></div> <div class="v-list-item__title">
  586.                PHP General
  587.              </div></a></div><div><a href="/forum/php-frameworks" tabindex="0" router="" class="word-break v-list-item v-list-item--link theme--light"><div class="v-list-item__icon"><i aria-hidden="true" class="v-icon notranslate mr-1 mdi mdi-comment-multiple-outline theme--light"></i></div> <div class="v-list-item__title">
  588.                PHP Frameworks
  589.              </div></a></div><div><a href="/forum/php-databases" tabindex="0" router="" class="word-break v-list-item v-list-item--link theme--light"><div class="v-list-item__icon"><i aria-hidden="true" class="v-icon notranslate mr-1 mdi mdi-comment-multiple-outline theme--light"></i></div> <div class="v-list-item__title">
  590.                PHP Databases
  591.              </div></a></div><div><a href="/forum/php-security" tabindex="0" router="" class="word-break v-list-item v-list-item--link theme--light"><div class="v-list-item__icon"><i aria-hidden="true" class="v-icon notranslate mr-1 mdi mdi-comment-multiple-outline theme--light"></i></div> <div class="v-list-item__title">
  592.                PHP Security
  593.              </div></a></div><div><a href="/forum/third-party-scripts" tabindex="0" router="" class="word-break v-list-item v-list-item--link theme--light"><div class="v-list-item__icon"><i aria-hidden="true" class="v-icon notranslate mr-1 mdi mdi-comment-multiple-outline theme--light"></i></div> <div class="v-list-item__title">
  594.                Third Party Scripts
  595.              </div></a></div><div><a href="/forum/php-cms" tabindex="0" router="" class="word-break v-list-item v-list-item--link theme--light"><div class="v-list-item__icon"><i aria-hidden="true" class="v-icon notranslate mr-1 mdi mdi-comment-multiple-outline theme--light"></i></div> <div class="v-list-item__title">
  596.                PHP CMS
  597.              </div></a></div><div><a href="/forum/javascript" tabindex="0" router="" class="word-break v-list-item v-list-item--link theme--light"><div class="v-list-item__icon"><i aria-hidden="true" class="v-icon notranslate mr-1 mdi mdi-comment-multiple-outline theme--light"></i></div> <div class="v-list-item__title">
  598.                Javascript
  599.              </div></a></div><div><a href="/forum/mysql" tabindex="0" router="" class="word-break v-list-item v-list-item--link theme--light"><div class="v-list-item__icon"><i aria-hidden="true" class="v-icon notranslate mr-1 mdi mdi-comment-multiple-outline theme--light"></i></div> <div class="v-list-item__title">
  600.                MySQL
  601.              </div></a></div><div><a href="/forum/html-and-css" tabindex="0" router="" class="word-break v-list-item v-list-item--link theme--light"><div class="v-list-item__icon"><i aria-hidden="true" class="v-icon notranslate mr-1 mdi mdi-comment-multiple-outline theme--light"></i></div> <div class="v-list-item__title">
  602.                HTML &amp; CSS
  603.              </div></a></div></div></div> <!----></div></div></div> <div class="flex pl-lg-4 pl-md-4 pl-xl-4 md8 lg9 xl10"><div class="flex"><div itemscope="itemscope" itemtype="http://schema.org/DiscussionForumPosting" class="row"><div class="col-sm-12 col-md-8 col-lg-8 col-12"><h1 itemprop="headline">How to get product name in Magento 2?</h1></div> <div class="text-md-right text-center col-sm-12 col-md-4 col-lg-4 col-12"><!----> <!----> <button type="button" class="v-btn v-btn--contained theme--dark v-size--default primary"><span class="v-btn__content">New message
  604.      </span></button></div></div> <div role="dialog" class="v-dialog__container"><!----></div> <div class="row"><div class="col col-12"><div class="v-card v-sheet theme--light"><div role="list" class="v-list v-sheet theme--light"><div tabindex="-1" role="listitem" class="v-list-item theme--light"><div class="row thread-row" data-v-3262fcae><!----> <!----> <!----> <!----> <!----> <div class="row mx-3" data-v-3262fcae data-v-3262fcae><div class="col-sm-3 col-md-3 col-lg-2 col-xl-1 col-12" data-v-3262fcae data-v-3262fcae><div itemscope="itemscope" itemtype="http://schema.org/Person" class="avatar text-center" data-v-3262fcae><div><div class="v-avatar" style="height:50px;min-width:50px;width:50px;"><div aria-label="domenico" role="img" class="v-image v-responsive theme--light"><div class="v-image__image v-image__image--preload v-image__image--cover" style="background-image:;background-position:center center;"></div><div class="v-responsive__content"></div></div></div></div> <p class="my-0 caption">Member</p> <div><a href="/profile/domenico" class="d-inline-flex"><p itemprop="name" class="subtitle-2 mb-0">
  605.        domenico
  606.      </p></a></div> <!----></div></div> <div class="py-0 col-sm-9 col-md-9 col-lg-10 col-xl-11 col-12" data-v-3262fcae data-v-3262fcae><!----> <div class="py-0 col col-12" data-v-3262fcae data-v-3262fcae><span class="caption" data-v-3262fcae>by
  607.          <a href="/profile/domenico" class="d-inline-flex caption" data-v-3262fcae>
  608.            domenico
  609.          </a></span>, <span class="caption" data-v-3262fcae>in category: </span> <span class="caption" data-v-3262fcae><a href="/forum/php-cms" class="d-inline-flex caption" data-v-3262fcae>
  610.            PHP CMS
  611.          </a></span>,
  612.        <span class="caption" data-v-3262fcae>2 years ago</span></div> <!----> <!----></div> <div class="col col-12" data-v-3262fcae data-v-3262fcae><div class="forum-text ql-viewer" data-v-3262fcae><p>How to get product name in Magento 2?</p></div> <div class="d-flex justify-start flex-wrap flex-lg-nowrap flex-md-nowrap flex-xl-nowrap flex-sm-nowrap" data-v-3262fcae><div class="text-center text-lg-left text-md-left text-xl-left text-sm-left col-sm-5 col-md-4 col-lg-2 col-xl-2 col-12" data-v-3262fcae data-v-3262fcae><div class="like-dislike-buttons pt-3" data-v-0348114a data-v-3262fcae><span class="v-badge v-badge--overlap theme--light" data-v-0348114a><span draggable="false" class="v-chip v-chip--outlined theme--light v-size--default info info--text" data-v-0348114a><span class="v-chip__content"><div class="d-flex justify-center" style="--primary-color:#8190CC;" data-v-0348114a><a href="#" class="like-dislike-buttons__btn" data-v-0348114a><i aria-hidden="true" class="v-icon notranslate mdi mdi-thumb-up theme--light" data-v-0348114a></i> <small title="17 likes" class="like-dislike-buttons__count" data-v-0348114a>17</small></a> <span class="separator" data-v-0348114a>|</span> <a href="#" class="like-dislike-buttons__btn" data-v-0348114a><i aria-hidden="true" class="v-icon notranslate mdi mdi-thumb-down theme--light" data-v-0348114a></i> <small title="no dislikes" class="like-dislike-buttons__count" data-v-0348114a>0</small></a></div></span></span><span class="v-badge__wrapper"><span aria-atomic="true" aria-label="Badge" aria-live="polite" role="status" class="v-badge__badge error" style="bottom:calc(100% - 12px);left:calc(100% - 12px);right:auto;top:auto;">17</span></span></span></div></div> <div class="col-sm-7 col-md-8 col-lg-10 col-xl-10 col-12" data-v-3262fcae data-v-3262fcae><div class="justify-center icons d-flex col col-12" data-v-11d4c0a4 data-v-11d4c0a4 data-v-3262fcae><a href="https://www.facebook.com/sharer.php?src=sp&amp;u=https%3A%2F%2Fforum.phparea.com%2Fthread%2Fhow-to-get-product-name-in-magento-2&amp;quote=How%20to%20get%20%23product%20name%20in%20Magento%202%3F&amp;hashtag=%23php" rel="nofollow noopener" target="_blank" title="Facebook" data-v-11d4c0a4><img src="https://forum-static.fra1.cdn.digitaloceanspaces.com/assets/images/icons/32/fb.png" width="32" height="32" alt="Facebook" data-v-11d4c0a4></a> <!----> <!----> <a href="https://twitter.com/intent/tweet?url=https%3A%2F%2Fforum.phparea.com%2Fthread%2Fhow-to-get-product-name-in-magento-2&amp;text=How%20to%20get%20%23product%20name%20in%20Magento%202%3F&amp;hashtags=php,synonyms,magento,magento2,mywebforum" rel="nofollow noopener" target="_blank" title="Twitter" data-v-11d4c0a4><img src="https://forum-static.fra1.cdn.digitaloceanspaces.com/assets/images/icons/32/twitter.png" width="32" height="32" alt="Twitter" data-v-11d4c0a4></a> <a href="https://www.linkedin.com/shareArticle?mini=true&amp;url=https%3A%2F%2Fforum.phparea.com%2Fthread%2Fhow-to-get-product-name-in-magento-2" rel="nofollow noopener" target="_blank" title="LinkedIn" data-v-11d4c0a4><img src="https://forum-static.fra1.cdn.digitaloceanspaces.com/assets/images/icons/32/linkedin.png" width="32" height="32" alt="LinkedIn" data-v-11d4c0a4></a> <a href="https://telegram.me/share/url?url=https%3A%2F%2Fforum.phparea.com%2Fthread%2Fhow-to-get-product-name-in-magento-2" rel="nofollow noopener" target="_blank" title="Telegram" data-v-11d4c0a4><img src="https://forum-static.fra1.cdn.digitaloceanspaces.com/assets/images/icons/32/telegram.png" width="32" height="32" alt="Telegram" data-v-11d4c0a4></a> <a href="https://api.whatsapp.com/send?text=https%3A%2F%2Fforum.phparea.com%2Fthread%2Fhow-to-get-product-name-in-magento-2" rel="nofollow noopener" target="_blank" title="Whatsapp" data-v-11d4c0a4><img src="https://forum-static.fra1.cdn.digitaloceanspaces.com/assets/images/icons/32/whatsapp.png" width="32" height="32" alt="Whatsapp" data-v-11d4c0a4></a> <!----></div></div></div> <!----></div></div> <!----> <!----></div></div> <hr role="separator" aria-orientation="horizontal" class="v-divider theme--light"> <h4 class="my-4 pl-4 text-capitalize">
  613.            2 answers
  614.          </h4> <hr role="separator" aria-orientation="horizontal" class="v-divider theme--light"> <div tabindex="-1" role="listitem" class="v-list-item theme--light"><!----> <div class="row post-row" data-v-145a8bfc data-v-145a8bfc><div class="py-0 col col-12" data-v-145a8bfc data-v-145a8bfc><div data-v-145a8bfc><!----></div></div> <!----> <!----> <!----> <!----> <div class="col-sm-3 col-md-2 col-lg-1 col-12" data-v-145a8bfc data-v-145a8bfc><div itemscope="itemscope" itemtype="http://schema.org/Person" class="avatar text-center" data-v-145a8bfc><div><div class="v-avatar" style="height:50px;min-width:50px;width:50px;"><div aria-label="aniya.jaskolski" role="img" class="v-image v-responsive theme--light"><div class="v-image__image v-image__image--preload v-image__image--cover" style="background-image:;background-position:center center;"></div><div class="v-responsive__content"></div></div></div></div> <p class="my-0 caption">Member</p> <div><a href="/profile/aniya.jaskolski" class="d-inline-flex"><p itemprop="name" class="subtitle-2 mb-0">
  615.        aniya.jaskolski
  616.      </p></a></div> <!----></div></div> <div class="col-sm-9 col-md-10 col-lg-11 col-12" data-v-145a8bfc data-v-145a8bfc><div class="pt-0 col col-12" data-v-145a8bfc data-v-145a8bfc><span class="caption" data-v-145a8bfc>by
  617.        <a href="/profile/aniya.jaskolski" class="d-inline-flex caption" data-v-145a8bfc>
  618.          aniya.jaskolski </a></span>,
  619.      <span class="caption" data-v-145a8bfc>2 years ago</span></div> <div class="forum-text ql-viewer" data-v-145a8bfc><p><span class="mention"><span><span><span class="mention"><span><span><span class="ql-mention-denotation-char">@</span>domenico</span></span></span> </span> </span></span></p><p>In Magento 2, you can get the product name by using the following code:</p><div style="color:#f8f8f2;background-color:#272822;">
  620. <table style="border-spacing:0;padding:0;margin:0;border:0;"><tbody><tr><td style="vertical-align:top;padding:0;margin:0;border:0;">
  621. <pre tabindex="0" style="color:#f8f8f2;background-color:#272822;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">1
  622. </span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">2
  623. </span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">3
  624. </span></pre></td>
  625. <td style="vertical-align:top;padding:0;margin:0;border:0;;width:100%">
  626. <pre tabindex="0" style="color:#f8f8f2;background-color:#272822;">$objectManager <span style="color:#f92672">=</span> <span style="color:#a6e22e">MagentoFrameworkAppObjectManager</span><span style="color:#f92672">::</span><span style="color:#a6e22e">getInstance</span>();
  627. $product <span style="color:#f92672">=</span> $objectManager<span style="color:#f92672">-&gt;</span><span style="color:#a6e22e">get</span>(<span style="color:#e6db74">&#39;MagentoCatalogModelProduct&#39;</span>)<span style="color:#f92672">-&gt;</span><span style="color:#a6e22e">load</span>($productId);
  628. $productName <span style="color:#f92672">=</span> $product<span style="color:#f92672">-&gt;</span><span style="color:#a6e22e">getName</span>();
  629. </pre></td></tr></tbody></table>
  630. </div>
  631. <p><br/></p><p>Here, <code>$productId</code> is the ID of the product for which you want to get the name.</p><p><br/></p><p>Keep in mind that the above code uses the object manager, which is considered an anti-pattern in Magento 2. It is recommended to use dependency injection instead of the object manager to create an instance of a class.</p><p><br/></p><p>For example:</p><div style="color:#f8f8f2;background-color:#272822;">
  632. <table style="border-spacing:0;padding:0;margin:0;border:0;"><tbody><tr><td style="vertical-align:top;padding:0;margin:0;border:0;">
  633. <pre tabindex="0" style="color:#f8f8f2;background-color:#272822;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 1
  634. </span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 2
  635. </span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 3
  636. </span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 4
  637. </span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 5
  638. </span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 6
  639. </span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 7
  640. </span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 8
  641. </span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 9
  642. </span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">10
  643. </span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">11
  644. </span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">12
  645. </span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">13
  646. </span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">14
  647. </span></pre></td>
  648. <td style="vertical-align:top;padding:0;margin:0;border:0;;width:100%">
  649. <pre tabindex="0" style="color:#f8f8f2;background-color:#272822;"><span style="color:#66d9ef">use</span> <span style="color:#a6e22e">MagentoCatalogApiProductRepositoryInterface</span>;
  650.  
  651. <span style="color:#f92672">...</span>
  652.  
  653. <span style="color:#66d9ef">public</span> <span style="color:#66d9ef">function</span> __construct(
  654.    <span style="color:#a6e22e">ProductRepositoryInterface</span> $productRepository
  655. ) {
  656.    $this<span style="color:#f92672">-&gt;</span><span style="color:#a6e22e">productRepository</span> <span style="color:#f92672">=</span> $productRepository;
  657. }
  658.  
  659. <span style="color:#f92672">...</span>
  660.  
  661. $product <span style="color:#f92672">=</span> $this<span style="color:#f92672">-&gt;</span><span style="color:#a6e22e">productRepository</span><span style="color:#f92672">-&gt;</span><span style="color:#a6e22e">getById</span>($productId);
  662. $productName <span style="color:#f92672">=</span> $product<span style="color:#f92672">-&gt;</span><span style="color:#a6e22e">getName</span>();
  663. </pre></td></tr></tbody></table>
  664. </div>
  665. <p><br/></p></div></div> <!----> <div class="text-center text-lg-left text-md-left text-xl-left text-sm-left col-sm-5 col-md-4 col-lg-2 col-xl-2 col-12" data-v-145a8bfc data-v-145a8bfc><div class="like-dislike-buttons pt-3" data-v-0348114a data-v-145a8bfc><span class="v-badge v-badge--overlap theme--light" data-v-0348114a><span draggable="false" class="v-chip v-chip--outlined theme--light v-size--default info info--text" data-v-0348114a><span class="v-chip__content"><div class="d-flex justify-center" style="--primary-color:#8190CC;" data-v-0348114a><a href="#" class="like-dislike-buttons__btn" data-v-0348114a><i aria-hidden="true" class="v-icon notranslate mdi mdi-thumb-up theme--light" data-v-0348114a></i> <small title="1 like" class="like-dislike-buttons__count" data-v-0348114a>1</small></a> <span class="separator" data-v-0348114a>|</span> <a href="#" class="like-dislike-buttons__btn" data-v-0348114a><i aria-hidden="true" class="v-icon notranslate mdi mdi-thumb-down theme--light" data-v-0348114a></i> <small title="no dislikes" class="like-dislike-buttons__count" data-v-0348114a>0</small></a></div></span></span><span class="v-badge__wrapper"><span aria-atomic="true" aria-label="Badge" aria-live="polite" role="status" class="v-badge__badge error" style="bottom:calc(100% - 12px);left:calc(100% - 12px);right:auto;top:auto;">1</span></span></span></div></div> <!----> <div class="col col-12" data-v-145a8bfc data-v-145a8bfc><hr role="separator" aria-orientation="horizontal" class="v-divider theme--light" data-v-145a8bfc></div></div></div><div tabindex="-1" role="listitem" class="v-list-item theme--light"><!----> <div class="row post-row" data-v-145a8bfc data-v-145a8bfc><!----> <!----> <!----> <!----> <!----> <div class="col-sm-3 col-md-2 col-lg-1 col-12" data-v-145a8bfc data-v-145a8bfc><div itemscope="itemscope" itemtype="http://schema.org/Person" class="avatar text-center" data-v-145a8bfc><div><div class="v-avatar" style="height:50px;min-width:50px;width:50px;"><div aria-label="muriel.schmidt" role="img" class="v-image v-responsive theme--light"><div class="v-image__image v-image__image--preload v-image__image--cover" style="background-image:;background-position:center center;"></div><div class="v-responsive__content"></div></div></div></div> <p class="my-0 caption">Member</p> <div><a href="/profile/muriel.schmidt" class="d-inline-flex"><p itemprop="name" class="subtitle-2 mb-0">
  666.        muriel.schmidt
  667.      </p></a></div> <!----></div></div> <div class="col-sm-9 col-md-10 col-lg-11 col-12" data-v-145a8bfc data-v-145a8bfc><div class="pt-0 col col-12" data-v-145a8bfc data-v-145a8bfc><span class="caption" data-v-145a8bfc>by
  668.        <a href="/profile/muriel.schmidt" class="d-inline-flex caption" data-v-145a8bfc>
  669.          muriel.schmidt </a></span>,
  670.      <span class="caption" data-v-145a8bfc>a year ago</span></div> <div class="forum-text ql-viewer" data-v-145a8bfc><p><span class="mention"><span><span><span class="mention"><span><span><span class="ql-mention-denotation-char">@</span>domenico</span></span></span> </span> </span></span></p><p>To get the product name in Magento 2, you can use the below code snippet:</p><ol><li>In a .phtml file:
  671. create(&#39;MagentoCatalogModelProduct&#39;)-&gt;load($productId);
  672. echo $product-&gt;getName();
  673. ?&gt;</li><li>Using dependency injection in a custom block class:
  674. productFactory = $productFactory;
  675. parent::__construct($context, $data);
  676. }
  677. public function getProduct()
  678. {
  679. $productId = 1; // Replace 1 with your product ID
  680. return $this-&gt;productFactory-&gt;create()-&gt;load($productId);
  681. }
  682. }
  683. In your .phtml file, you can call the getProduct method to get the product object and then retrieve the name:
  684. getProduct();
  685. echo $product-&gt;getName();
  686. ?&gt;</li></ol><p><br/></p><p>Note: In general, it is preferable to use dependency injection instead of directly accessing the object manager in Magento 2.</p></div></div> <!----> <div class="text-center text-lg-left text-md-left text-xl-left text-sm-left col-sm-5 col-md-4 col-lg-2 col-xl-2 col-12" data-v-145a8bfc data-v-145a8bfc><div class="like-dislike-buttons pt-3" data-v-0348114a data-v-145a8bfc><span class="v-badge v-badge--overlap theme--light" data-v-0348114a><span draggable="false" class="v-chip v-chip--outlined theme--light v-size--default info info--text" data-v-0348114a><span class="v-chip__content"><div class="d-flex justify-center" style="--primary-color:#8190CC;" data-v-0348114a><a href="#" class="like-dislike-buttons__btn" data-v-0348114a><i aria-hidden="true" class="v-icon notranslate mdi mdi-thumb-up theme--light" data-v-0348114a></i> <small title="no likes" class="like-dislike-buttons__count" data-v-0348114a>0</small></a> <span class="separator" data-v-0348114a>|</span> <a href="#" class="like-dislike-buttons__btn" data-v-0348114a><i aria-hidden="true" class="v-icon notranslate mdi mdi-thumb-down theme--light" data-v-0348114a></i> <small title="no dislikes" class="like-dislike-buttons__count" data-v-0348114a>0</small></a></div></span></span><span class="v-badge__wrapper"><span aria-atomic="true" aria-label="Badge" aria-live="polite" role="status" class="v-badge__badge error" style="bottom:calc(100% - 12px);left:calc(100% - 12px);right:auto;top:auto;">0</span></span></span></div></div> <!----> <div class="col col-12" data-v-145a8bfc data-v-145a8bfc><!----></div></div></div> <div class="mugen-scroll"></div></div></div></div></div> <!----> <div class="row mt-2"><div class="col col-12"><h2 class="display-1">Related Threads:</h2></div> <div class="col col-12"><div class="mx-auto v-card v-sheet theme--light"><div role="list" class="v-list v-sheet theme--light v-list--two-line"><!----> <a href="/thread/how-to-get-category-name-in-magento-2" tabindex="0" role="listitem" class="v-list-item v-list-item--link theme--light"><div class="v-avatar v-list-item__avatar v-list-item__avatar--horizontal rounded-0 v-avatar--tile" style="height:90px;min-width:90px;width:90px;"></div> <div class="v-list-item__content"><div class="v-list-item__title">How to get category name in Magento 2?</div></div></a><hr role="separator" aria-orientation="horizontal" class="v-divider theme--light"> <a href="/thread/how-to-get-current-product-category-name-in" tabindex="0" role="listitem" class="v-list-item v-list-item--link theme--light"><div class="v-avatar v-list-item__avatar v-list-item__avatar--horizontal rounded-0 v-avatar--tile" style="height:90px;min-width:90px;width:90px;"></div> <div class="v-list-item__content"><div class="v-list-item__title">How to get current product category name in woocommerce?</div></div></a><hr role="separator" aria-orientation="horizontal" class="v-divider theme--light"> <a href="/thread/how-to-get-form-key-in-magento-2" tabindex="0" role="listitem" class="v-list-item v-list-item--link theme--light"><div class="v-avatar v-list-item__avatar v-list-item__avatar--horizontal rounded-0 v-avatar--tile" style="height:90px;min-width:90px;width:90px;"></div> <div class="v-list-item__content"><div class="v-list-item__title">How to get form key in Magento 2?</div></div></a><hr role="separator" aria-orientation="horizontal" class="v-divider theme--light"> <a href="/thread/how-to-get-media-url-in-magento-2" tabindex="0" role="listitem" class="v-list-item v-list-item--link theme--light"><div class="v-avatar v-list-item__avatar v-list-item__avatar--horizontal rounded-0 v-avatar--tile" style="height:90px;min-width:90px;width:90px;"></div> <div class="v-list-item__content"><div class="v-list-item__title">How to get media url in Magento 2?</div></div></a><hr role="separator" aria-orientation="horizontal" class="v-divider theme--light"> <a href="/thread/how-to-get-the-current-route-name-in-laravel" tabindex="0" role="listitem" class="v-list-item v-list-item--link theme--light"><div class="v-avatar v-list-item__avatar v-list-item__avatar--horizontal rounded-0 v-avatar--tile" style="height:90px;min-width:90px;width:90px;"></div> <div class="v-list-item__content"><div class="v-list-item__title">How to get the current route name in Laravel?</div></div></a><hr role="separator" aria-orientation="horizontal" class="v-divider theme--light"> <a href="/thread/how-to-get-only-product-list-from-woocommerce-api" tabindex="0" role="listitem" class="v-list-item v-list-item--link theme--light"><div class="v-avatar v-list-item__avatar v-list-item__avatar--horizontal rounded-0 v-avatar--tile" style="height:90px;min-width:90px;width:90px;"></div> <div class="v-list-item__content"><div class="v-list-item__title">How to get only product list from woocommerce api?</div></div></a></div></div></div></div></div></div></div></div> <div pages="" class="footer" data-v-600bef70><!----> <footer class="v-footer footer mt-4 v-sheet theme--light" data-v-600bef70><!----> <!----> <div class="flex xs12 sm12 md6 lg4" data-v-600bef70><div class="about-section white-text mx-auto" data-v-600bef70><h4 class="title text-center" data-v-600bef70>About us</h4> <ul class="text-center pr-6" data-v-600bef70><li data-v-600bef70><a href="/contact" rel="nofollow" data-v-600bef70>Contact us</a></li></ul></div></div> <div class="flex xs12 text-center mt-2" data-v-600bef70><span data-v-600bef70>© 2024 Copyright: forum.phparea.com
  687.      </span> <p class="mb-0" data-v-600bef70>
  688.        This Site is Created By
  689.        <a href="https://mywebforum.com" target="_blank" data-v-600bef70>mywebforum.com</a></p> <p data-v-600bef70>
  690.        Get Your Own
  691.        <a href="https://mywebforum.com" target="_blank" data-v-600bef70>Questions &amp; Answers platform</a></p></div></footer> <!----> <!----></div> <!----> <div class="js-scripts"></div></div></div></div></div><script>window.__NUXT__=(function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,_,$,aa,ab,ac,ad,ae,af,ag,ah,ai,aj,ak,al,am,an,ao,ap,aq,ar,as,at,au,av,aw,ax,ay,az,aA,aB,aC,aD,aE,aF,aG,aH,aI,aJ,aK,aL,aM,aN,aO,aP,aQ,aR,aS,aT,aU,aV,aW,aX,aY,aZ,a_,a$,ba,bb,bc,bd,be,bf,bg,bh,bi,bj,bk,bl,bm,bn,bo,bp,bq,br){ap.id=46309;ap.name=u;ap.messages=784;ap.threads=646;ap.meta_title=u;ap.meta_description=u;ap.children=e;ap.icon=b;ap.is_public=d;ap.last_post={id:252374,message:"\u003Cp\u003E\u003Cspan class=\"mention\"\u003E\u003Cspan\u003E\u003Cspan\u003E\u003Cspan class=\"mention\"\u003E\u003Cspan\u003E\u003Cspan\u003E\u003Cspan class=\"ql-mention-denotation-char\"\u003E@\u003C\u002Fspan\u003Efiliberto\u003C\u002Fspan\u003E\u003C\u002Fspan\u003E\u003C\u002Fspan\u003E \u003C\u002Fspan\u003E \u003C\u002Fspan\u003E\u003C\u002Fspan\u003E\u003C\u002Fp\u003E\u003Cp\u003ETo load a base64 image over an HTTPS connection, you can follow these steps:\u003C\u002Fp\u003E\u003Col\u003E\u003Cli\u003E\u003Cstrong\u003EConvert the image to a base64 string\u003C\u002Fstrong\u003E: First, convert the image to a base64 string using a tool or code snippet. Make sure to encode the image using base64 encoding.\n\u003C\u002Fli\u003E\u003Cli\u003E\u003Cstrong\u003EEmbed the base64 image in your HTML\u002FCSS\u003C\u002Fstrong\u003E: After converting the image to a base64 string, you can embed the image directly in your HTML or CSS code using the following format:\n\u003C\u002Fli\u003E\u003C\u002Fol\u003E\u003Cpre class=\"code-block ql-syntax\" id=\"code-6gy62rh\"\u003E&lt;img src=&#34;data:image\u002Fpng;base64, [base64 string here]&#34; alt=&#34;image&#34;&gt;\n\u003C\u002Fpre\u003E\u003Cp\u003E\u003Cbr\u003E\u003C\u002Fp\u003E\u003Cp\u003EMake sure to replace \u003Ccode\u003E[base64 string here]\u003C\u002Fcode\u003E with the actual base64 string of your image.\u003C\u002Fp\u003E\u003Col\u003E\u003Cli\u003E\u003Cstrong\u003EServe your website over HTTPS\u003C\u002Fstrong\u003E: Ensure that your website is served over HTTPS to securely load the base64 image. You will need an SSL certificate installed on your server to serve your website over HTTPS.\n\u003C\u002Fli\u003E\u003Cli\u003E\u003Cstrong\u003ETest the image loading\u003C\u002Fstrong\u003E: Finally, test the image loading by loading your website in a web browser. The base64 image should be displayed without any issues over the HTTPS connection.\n\u003C\u002Fli\u003E\u003C\u002Fol\u003E\u003Cp\u003E\u003Cbr\u003E\u003C\u002Fp\u003E\u003Cp\u003EBy following these steps, you can securely load a base64 image over an HTTPS connection.\u003C\u002Fp\u003E",is_moderated:c,username:"lew",user_active:a,created:"2024-10-14T08:56:23Z"};ap.order=a;ap.description=u;ap.slug="php-general";aq.id=46310;aq.name=ar;aq.messages=1474;aq.threads=1318;aq.meta_title=ar;aq.meta_description=as;aq.children=e;aq.icon=b;aq.is_public=d;aq.last_post={id:252684,message:"\u003Cp\u003E\u003Cspan class=\"mention\"\u003E\u003Cspan\u003E\u003Cspan\u003E\u003Cspan class=\"mention\"\u003E\u003Cspan\u003E\u003Cspan\u003E\u003Cspan class=\"ql-mention-denotation-char\"\u003E@\u003C\u002Fspan\u003Egiovanny.lueilwitz\u003C\u002Fspan\u003E\u003C\u002Fspan\u003E\u003C\u002Fspan\u003E \u003C\u002Fspan\u003E \u003C\u002Fspan\u003E\u003C\u002Fspan\u003E\u003C\u002Fp\u003E\u003Cp\u003ETo prevent a user from going back to the login page after they have already logged in, you can implement a redirect in the login controller. Here&#39;s how you can do it in CodeIgniter:\u003C\u002Fp\u003E\u003Col\u003E\u003Cli\u003EIn your login controller, after the user has successfully logged in, check if they are already logged in using the logged_in() function of CodeIgniter&#39;s session library. If the user is logged in, redirect them to a different page.\u003C\u002Fli\u003E\u003C\u002Fol\u003E\u003Cpre class=\"code-block ql-syntax\" id=\"code-7lxutzu\"\u003Epublic function login() {\n    \u002F\u002F Check if user is already logged in\n    if ($this-&gt;session-&gt;logged_in) {\n        redirect(&#39;dashboard&#39;); \u002F\u002F Redirect to dashboard or any other page\n    }\n\n    \u002F\u002F Process login logic here\n\n    \u002F\u002F If login is successful, set session variable\n    $this-&gt;session-&gt;set_userdata(&#39;logged_in&#39;, true);\n\n    \u002F\u002F Redirect to dashboard after successful login\n    redirect(&#39;dashboard&#39;);\n}\n\u003C\u002Fpre\u003E\u003Cp\u003E\u003Cbr\u003E\u003C\u002Fp\u003E\u003Col\u003E\u003Cli\u003EMake sure to load the session library in your controller constructor to make use of CodeIgniter&#39;s session functions.\u003C\u002Fli\u003E\u003C\u002Fol\u003E\u003Cpre class=\"code-block ql-syntax\" id=\"code-9stgivk\"\u003Epublic function __construct() {\n    parent::__construct();\n    $this-&gt;load-&gt;library(&#39;session&#39;);\n}\n\u003C\u002Fpre\u003E\u003Cp\u003E\u003Cbr\u003E\u003C\u002Fp\u003E\u003Cp\u003EBy implementing this redirect logic in your login controller, the user will be redirected to a different page if they try to access the login page after they have already logged in.\u003C\u002Fp\u003E",is_moderated:c,username:ak,user_active:a,created:"2024-10-17T04:18:34Z"};aq.order=a;aq.description=as;aq.slug="php-frameworks";at.id=46311;at.name=au;at.messages=175;at.threads=102;at.meta_title=au;at.meta_description=av;at.children=e;at.icon=b;at.is_public=d;at.last_post={id:195274,message:"\u003Cp\u003E\u003Cspan class=\"mention\"\u003E\u003Cspan\u003E\u003Cspan\u003E\u003Cspan class=\"mention\"\u003E\u003Cspan\u003E\u003Cspan\u003E\u003Cspan class=\"ql-mention-denotation-char\"\u003E@\u003C\u002Fspan\u003Ewilmer.lemke\u003C\u002Fspan\u003E\u003C\u002Fspan\u003E\u003C\u002Fspan\u003E \u003C\u002Fspan\u003E \u003C\u002Fspan\u003E\u003C\u002Fspan\u003E\u003C\u002Fp\u003E\u003Cp\u003EIf you want to store a date without the time in a PostgreSQL table, you can use the date data type. When inserting data into the table, you can use the current_date function to get the current date without the time. For example:\u003C\u002Fp\u003E\u003Cp\u003E\u003Cbr\u003E\u003C\u002Fp\u003E\u003Cp\u003E1\u003C\u002Fp\u003E\u003Cp\u003E\u003Cbr\u003E\u003C\u002Fp\u003E\u003Cp\u003EINSERT INTO table_name (date_column) VALUES (current_date);\u003C\u002Fp\u003E\u003Cp\u003E\u003Cbr\u003E\u003C\u002Fp\u003E\u003Cp\u003EThis will insert the current date into the &#39;date_column&#39; of the table, without the time component.\u003C\u002Fp\u003E\u003Cp\u003E\u003Cbr\u003E\u003C\u002Fp\u003E\u003Cp\u003EAlternatively, you can use the to_char function to format a date or timestamp column as a string without the time. For example:\u003C\u002Fp\u003E\u003Cp\u003E\u003Cbr\u003E\u003C\u002Fp\u003E\u003Cp\u003E1\u003C\u002Fp\u003E\u003Cp\u003E\u003Cbr\u003E\u003C\u002Fp\u003E\u003Cp\u003ESELECT to_char(date_column, &#39;YYYY-MM-DD&#39;) FROM table_name;\u003C\u002Fp\u003E\u003Cp\u003E\u003Cbr\u003E\u003C\u002Fp\u003E\u003Cp\u003EThis will return the &#39;date_column&#39; values in the format &#39;YYYY-MM-DD&#39;, without the time component.\u003C\u002Fp\u003E",is_moderated:c,username:"kadin",user_active:a,created:"2023-11-13T06:42:02Z"};at.order=a;at.description=av;at.slug="php-databases";aw.id=46312;aw.name=v;aw.messages=43;aw.threads=34;aw.meta_title=v;aw.meta_description=v;aw.children=e;aw.icon=b;aw.is_public=d;aw.last_post={id:168943,message:"\u003Cp\u003E\u003Cspan class=\"mention\"\u003E\u003Cspan\u003E\u003Cspan\u003E\u003Cspan class=\"mention\"\u003E\u003Cspan\u003E\u003Cspan\u003E\u003Cspan class=\"ql-mention-denotation-char\"\u003E@\u003C\u002Fspan\u003Eadan\u003C\u002Fspan\u003E\u003C\u002Fspan\u003E\u003C\u002Fspan\u003E \u003C\u002Fspan\u003E \u003C\u002Fspan\u003E\u003C\u002Fspan\u003E\u003C\u002Fp\u003E\u003Cp\u003ETo prevent cross-site scripting (XSS) in PHP, you can implement the following measures:\u003C\u002Fp\u003E\u003Col\u003E\u003Cli\u003EInput Validation:\nAlways validate and sanitize user input to ensure it matches the expected type, format, or range before using it.\nUse PHP functions like filter_input() or htmlspecialchars() to sanitize user input to prevent malicious code execution.\u003C\u002Fli\u003E\u003Cli\u003EOutput Encoding:\nWhenever outputting user-generated data back to the browser, make sure to properly encode it to prevent any potential XSS attacks.\nUse PHP functions like htmlspecialchars() or htmlentities() to encode user-generated content before displaying it in HTML context.\u003C\u002Fli\u003E\u003Cli\u003EUse Prepared Statements or Parameterized Queries:\nWhen dealing with SQL queries, avoid direct concatenation of user inputs into the query strings.\nInstead, use prepared statements or parameterized queries with placeholders to ensure automatic escaping and safer execution of SQL queries.\u003C\u002Fli\u003E\u003Cli\u003ESet HTTP-only Cookie Flag:\nWhen setting cookies, always include the HTTP-only flag to prevent JavaScript access to cookies.\nThis ensures that session cookies cannot be accessed or stolen through XSS vulnerabilities.\u003C\u002Fli\u003E\u003Cli\u003EEnable Content Security Policy (CSP):\nImplement and enforce a Content Security Policy header that limits the execution of scripts, stylesheets, and other resources to only trusted sources.\nFor example, you can restrict the execution of JavaScript code only from your own domain or trusted sources.\u003C\u002Fli\u003E\u003Cli\u003ERegularly Update PHP and Libraries:\nStay up to date with the latest PHP version and regularly update the PHP frameworks and libraries you are using.\nUpdates often include security patches that help prevent XSS attacks.\u003C\u002Fli\u003E\u003Cli\u003ESecurity Headers:\nImplement security headers like X-XSS-Protection, X-Content-Type-Options, Strict-Transport-Security (HSTS), X-Frame-Options, etc., to enhance the security of your PHP application.\u003C\u002Fli\u003E\u003C\u002Fol\u003E\u003Cp\u003E\u003Cbr\u003E\u003C\u002Fp\u003E\u003Cp\u003ERemember, XSS prevention should be implemented at all layers of your application, including the front-end, back-end, and any user-generated content that you output.\u003C\u002Fp\u003E",is_moderated:c,username:"tressie.damore",user_active:a,created:"2023-07-02T15:23:52Z"};aw.order=a;aw.description=v;aw.slug="php-security";ax.id=46313;ax.name=w;ax.messages=874;ax.threads=893;ax.meta_title=w;ax.meta_description=w;ax.children=e;ax.icon=b;ax.is_public=d;ax.last_post={id:198783,message:"\u003Cp\u003EHow to redirect a folder in htaccess?\u003C\u002Fp\u003E",is_moderated:c,username:"edmond_brakus",user_active:a,created:"2024-10-18T06:13:38Z"};ax.order=a;ax.description=w;ax.slug="third-party-scripts";ay.id=S;ay.name=j;ay.messages=597;ay.threads=540;ay.meta_title=b;ay.meta_description=j;ay.children=e;ay.icon=b;ay.is_public=d;ay.last_post={id:252795,message:"\u003Cp\u003E\u003Cspan class=\"mention\"\u003E\u003Cspan\u003E\u003Cspan\u003E\u003Cspan class=\"mention\"\u003E\u003Cspan\u003E\u003Cspan\u003E\u003Cspan class=\"ql-mention-denotation-char\"\u003E@\u003C\u002Fspan\u003Edarrion.kuhn\u003C\u002Fspan\u003E\u003C\u002Fspan\u003E\u003C\u002Fspan\u003E \u003C\u002Fspan\u003E \u003C\u002Fspan\u003E\u003C\u002Fspan\u003E\u003C\u002Fp\u003E\u003Cp\u003ETo use navigation in Elementor, follow these steps:\u003C\u002Fp\u003E\u003Col\u003E\u003Cli\u003EOpen the Elementor editor by selecting the page you want to edit and clicking on the &#34;Edit with Elementor&#34; button.\n\u003C\u002Fli\u003E\u003Cli\u003EDrag and drop the Navigation widget from the Elementor panel on the left side of the screen to where you want it to appear on your page.\n\u003C\u002Fli\u003E\u003Cli\u003ECustomize the navigation widget by adjusting the settings in the Elementor panel on the left side of the screen. You can change the layout, style, typography, colors, and more to match the design of your website.\n\u003C\u002Fli\u003E\u003Cli\u003EAdd links to the navigation menu by clicking on the &#34;Edit Section&#34; button and then selecting the &#34;Edit Navigation Menu&#34; option. Here, you can add, remove, and re-order menu items as needed.\n\u003C\u002Fli\u003E\u003Cli\u003EOnce you have finished customizing the navigation widget, click the &#34;Update&#34; button to save your changes.\n\u003C\u002Fli\u003E\u003Cli\u003EPreview your page to see how the navigation menu looks and functions. Make any additional adjustments as needed.\n\u003C\u002Fli\u003E\u003Cli\u003EOnce you are satisfied with your navigation menu, click the &#34;Publish&#34; button to make your changes live on your website.\n\u003C\u002Fli\u003E\u003C\u002Fol\u003E\u003Cp\u003E\u003Cbr\u003E\u003C\u002Fp\u003E\u003Cp\u003EThat&#39;s it! You have now successfully added and customized a navigation menu in Elementor.\u003C\u002Fp\u003E",is_moderated:c,username:"shyann",user_active:a,created:"2024-10-18T04:35:30Z"};ay.order=a;ay.description=j;ay.slug=ae;az.id=74741;az.name=x;az.messages=1979;az.threads=2012;az.meta_title=x;az.meta_description=x;az.children=e;az.icon=b;az.is_public=d;az.last_post={id:252805,message:"\u003Cp\u003E\u003Cspan class=\"mention\"\u003E\u003Cspan\u003E\u003Cspan\u003E\u003Cspan class=\"mention\"\u003E\u003Cspan\u003E\u003Cspan\u003E\u003Cspan class=\"ql-mention-denotation-char\"\u003E@\u003C\u002Fspan\u003Edomenico\u003C\u002Fspan\u003E\u003C\u002Fspan\u003E\u003C\u002Fspan\u003E \u003C\u002Fspan\u003E \u003C\u002Fspan\u003E\u003C\u002Fspan\u003E\u003C\u002Fp\u003E\u003Cp\u003EIn Ember.js, there is no built-in way to omit specific attributes from a model when it is being serialized. However, you can achieve this by defining a custom serializer for your model and implementing the \u003Ccode\u003EnormalizeResponse\u003C\u002Fcode\u003E method to omit the attributes you don&#39;t want to include.\u003C\u002Fp\u003E\u003Cp\u003E\u003Cbr\u003E\u003C\u002Fp\u003E\u003Cp\u003EHere is an example of how you can omit attributes using a custom serializer:\u003C\u002Fp\u003E\u003Cpre class=\"code-block ql-syntax\" id=\"code-ytwyzwo\"\u003E\u002F\u002F app\u002Fserializers\u002Fcustom-serializer.js\n\nimport JSONSerializer from &#39;@ember-data\u002Fserializer\u002Fjson&#39;;\n\nexport default JSONSerializer.extend({\n  normalizeResponse(store, primaryModelClass, payload, id, requestType) {\n    if (requestType === &#39;findRecord&#39; || requestType === &#39;queryRecord&#39;) {\n      \u002F\u002F Omit the &#39;secretAttribute&#39; from the payload\n      delete payload.secretAttribute;\n    }\n\n    return this._super(...arguments);\n  }\n});\n\u003C\u002Fpre\u003E\u003Cp\u003E\u003Cbr\u003E\u003C\u002Fp\u003E\u003Cp\u003EIn this example, we are creating a custom serializer that extends \u003Ccode\u003EJSONSerializer\u003C\u002Fcode\u003E and overrides the \u003Ccode\u003EnormalizeResponse\u003C\u002Fcode\u003E method to remove the \u003Ccode\u003EsecretAttribute\u003C\u002Fcode\u003E from the payload before it gets normalized.\u003C\u002Fp\u003E\u003Cp\u003E\u003Cbr\u003E\u003C\u002Fp\u003E\u003Cp\u003EYou can then specify this custom serializer for your model by setting the \u003Ccode\u003Eserializer\u003C\u002Fcode\u003E property in your model definition like this:\u003C\u002Fp\u003E\u003Cpre class=\"code-block ql-syntax\" id=\"code-b7sbj1o\"\u003E\u002F\u002F app\u002Fmodels\u002Fyour-model.js\n\nimport Model from &#39;@ember-data\u002Fmodel&#39;;\nimport attr from &#39;@ember-data\u002Fmodel\u002Fattr&#39;;\nimport { inject as service } from &#39;@ember\u002Fservice&#39;;\n\nexport default Model.extend({\n  customSerializer: service(),\n\n  serializer: &#39;custom-serializer&#39;,\n\n  \u002F\u002F Define the model attributes here\n  name: attr(&#39;string&#39;),\n  age: attr(&#39;number&#39;),\n  secretAttribute: attr(&#39;string&#39;)\n});\n\u003C\u002Fpre\u003E\u003Cp\u003E\u003Cbr\u003E\u003C\u002Fp\u003E\u003Cp\u003EBy setting the \u003Ccode\u003Eserializer\u003C\u002Fcode\u003E property to \u003Ccode\u003Ecustom-serializer\u003C\u002Fcode\u003E, Ember.js will use your custom serializer to serialize and deserialize your model, and the \u003Ccode\u003EsecretAttribute\u003C\u002Fcode\u003E will be omitted from the response when you request the model.\u003C\u002Fp\u003E",is_moderated:c,username:"brandy",user_active:a,created:"2024-10-18T06:09:35Z"};az.order=a;az.description=x;az.slug="javascript";aA.id=75576;aA.name=aB;aA.messages=354;aA.threads=362;aA.meta_title=aB;aA.meta_description=b;aA.children=e;aA.icon=b;aA.is_public=d;aA.last_post={id:252600,message:"\u003Cp\u003E\u003Cspan class=\"mention\"\u003E\u003Cspan\u003E\u003Cspan\u003E\u003Cspan class=\"mention\"\u003E\u003Cspan\u003E\u003Cspan\u003E\u003Cspan class=\"ql-mention-denotation-char\"\u003E@\u003C\u002Fspan\u003Edarion\u003C\u002Fspan\u003E\u003C\u002Fspan\u003E\u003C\u002Fspan\u003E \u003C\u002Fspan\u003E \u003C\u002Fspan\u003E\u003C\u002Fspan\u003E\u003C\u002Fp\u003E\u003Cp\u003EIn Oracle, you can concatenate multiple results into one column using the CONCAT function or the || operator.\u003C\u002Fp\u003E\u003Cp\u003E\u003Cbr\u003E\u003C\u002Fp\u003E\u003Cp\u003EHere is an example using the CONCAT function:\u003C\u002Fp\u003E\u003Cp\u003E\u003Cbr\u003E\u003C\u002Fp\u003E\u003Cp\u003ESELECT CONCAT(column1, &#39;-&#39;, column2, &#39;-&#39;, column3) AS concatenated_column\nFROM your_table;\u003C\u002Fp\u003E\u003Cp\u003E\u003Cbr\u003E\u003C\u002Fp\u003E\u003Cp\u003EAnd here is an example using the || operator:\u003C\u002Fp\u003E\u003Cp\u003E\u003Cbr\u003E\u003C\u002Fp\u003E\u003Cp\u003ESELECT column1 || &#39;-&#39; || column2 || &#39;-&#39; || column3 AS concatenated_column\nFROM your_table;\u003C\u002Fp\u003E\u003Cp\u003E\u003Cbr\u003E\u003C\u002Fp\u003E\u003Cp\u003EBoth of these queries will concatenate the values from column1, column2, and column3 into a single column called concatenated_column. You can specify any delimiter you want between the values, such as &#39;-&#39;, &#39; &#39;, etc.\u003C\u002Fp\u003E",is_moderated:c,username:"samara",user_active:a,created:"2024-10-16T12:16:30Z"};aA.order=a;aA.description=b;aA.slug="mysql";aC.id=77212;aC.name=aD;aC.messages=297;aC.threads=314;aC.meta_title=aD;aC.meta_description=b;aC.children=e;aC.icon=b;aC.is_public=d;aC.last_post={id:251941,message:"\u003Cp\u003E\u003Cspan class=\"mention\"\u003E\u003Cspan\u003E\u003Cspan\u003E\u003Cspan class=\"mention\"\u003E\u003Cspan\u003E\u003Cspan\u003E\u003Cspan class=\"ql-mention-denotation-char\"\u003E@\u003C\u002Fspan\u003Eherminia_bruen\u003C\u002Fspan\u003E\u003C\u002Fspan\u003E\u003C\u002Fspan\u003E \u003C\u002Fspan\u003E \u003C\u002Fspan\u003E\u003C\u002Fspan\u003E\u003C\u002Fp\u003E\u003Cp\u003ESetting focus on an iframe that is cross-domain is generally not possible due to security restrictions and the Same Origin Policy enforced by web browsers. This policy prevents scripts running on one domain from accessing or manipulating content within an iframe that is hosted on a different domain.\u003C\u002Fp\u003E\u003Cp\u003E\u003Cbr\u003E\u003C\u002Fp\u003E\u003Cp\u003EOne workaround is to use postMessage() to communicate with the iframe and request it to set focus to a specific element within the iframe. Here&#39;s an example of how you can achieve this:\u003C\u002Fp\u003E\u003Col\u003E\u003Cli\u003EAdd a message event listener in the parent window:\u003C\u002Fli\u003E\u003C\u002Fol\u003E\u003Cpre class=\"code-block ql-syntax\" id=\"code-6s6bf38\"\u003Ewindow.addEventListener(&#39;message&#39;, function(event) {\n    if (event.origin !== &#39;https:\u002F\u002Fexample.com&#39;) return; \u002F\u002F Only accept messages from specific origin\n    var iframe = document.getElementById(&#39;myIframe&#39;);\n    var element = iframe.contentDocument.getElementById(&#39;elementId&#39;);\n    element.focus();\n});\n\u003C\u002Fpre\u003E\u003Cp\u003E\u003Cbr\u003E\u003C\u002Fp\u003E\u003Col\u003E\u003Cli\u003EIn the iframe&#39;s content window, send a message to the parent window requesting to set focus:\u003C\u002Fli\u003E\u003C\u002Fol\u003E\u003Cpre class=\"code-block ql-syntax\" id=\"code-0jpbvkz\"\u003Evar parentWindow = window.parent;\nparentWindow.postMessage(&#39;setFocus&#39;, &#39;https:\u002F\u002Fparentdomain.com&#39;);\n\u003C\u002Fpre\u003E\u003Cp\u003E\u003Cbr\u003E\u003C\u002Fp\u003E\u003Cp\u003EThis way, you can use postMessage() to send a message from the iframe to the parent window, and then set focus to a specific element within the iframe. Just make sure to validate the origin of the messages to prevent potential security risks.\u003C\u002Fp\u003E",is_moderated:c,username:"filiberto",user_active:a,created:"2024-10-06T16:23:22Z"};aC.order=a;aC.description=b;aC.slug="html-and-css";return {layout:ad,data:[{sanitizedMessage:i,thread:{id:74449,name:i,message:"\u003Cp\u003EHow to get product name in Magento 2?\u003C\u002Fp\u003E",formatted_message:b,hash_tags:"[\"php\",\"product\",\"synonyms\",\"magento\",\"magento2\"]",tags:["php","product","synonyms","magento","magento2","mywebforum"],category:{id:S,name:j,messages:a,threads:a,meta_title:b,meta_description:b,children:e,icon:b,is_public:d,order:a,description:j,slug:ae},category_id:S,slug:T,likes:17,dislikes:a,is_closed:d,is_pinned:d,is_moderated:c,username:"domenico",user_active:f,role:g,user_avatar:"avatar\u002Fdomenico\u002Fprikolnie-aviki-f-it-ru95.gif",created:"2022-07-24T21:02:34Z"},relatedThreads:[{id:74624,title:af,text:af,avatar:"avatar\u002Fryan.murray\u002F617953047.jpg",role:g,slug:"how-to-get-category-name-in-magento-2",username:"ryan.murray",created:"2022-07-26T08:04:37Z"},{id:184786,title:ag,text:ag,avatar:"avatar\u002Fadan\u002F981794179.jpg",role:g,slug:"how-to-get-current-product-category-name-in",username:"adan",created:"2024-05-25T01:13:13Z"},{id:73460,title:ah,text:ah,avatar:"avatar\u002Fderon\u002F2842.jpg",role:g,slug:"how-to-get-form-key-in-magento-2",username:"deron",created:"2022-07-17T13:52:34Z"},{id:74250,title:ai,text:ai,avatar:"avatar\u002Fraphael_tillman\u002F1883.jpg",role:g,slug:"how-to-get-media-url-in-magento-2",username:"raphael_tillman",created:"2022-07-23T10:00:34Z"},{id:72318,title:aj,text:aj,avatar:"avatar\u002Fdarrion.kuhn\u002F39-2.jpg",role:g,slug:"how-to-get-the-current-route-name-in-laravel",username:ak,created:"2022-07-09T07:16:37Z"},{id:185799,title:al,text:al,avatar:"avatar\u002Flarissa\u002F2-2 (2).jpg",role:g,slug:"how-to-get-only-product-list-from-woocommerce-api",username:"larissa",created:"2024-06-05T01:07:37Z"}],socialSettings:{id:2028,size:a,facebook:c,vk:d,ok:d,linkedin:c,telegram:c,whatsapp:c,pocket:d,twitter:c,active:c},page:f,totals:f,postsTotal:am,posts:[{id:125394,message:"\u003Cp\u003E\u003Cspan class=\"mention\"\u003E\u003Cspan\u003E\u003Cspan\u003E\u003Cspan class=\"mention\"\u003E\u003Cspan\u003E\u003Cspan\u003E\u003Cspan class=\"ql-mention-denotation-char\"\u003E@\u003C\u002Fspan\u003Edomenico\u003C\u002Fspan\u003E\u003C\u002Fspan\u003E\u003C\u002Fspan\u003E \u003C\u002Fspan\u003E \u003C\u002Fspan\u003E\u003C\u002Fspan\u003E\u003C\u002Fp\u003E\u003Cp\u003EIn Magento 2, you can get the product name by using the following code:\u003C\u002Fp\u003E\u003Cpre class=\"code-block ql-syntax\" id=\"code-2ksylm8\" language=\"php\"\u003E$objectManager = MagentoFrameworkAppObjectManager::getInstance();\n$product = $objectManager-&gt;get(&#39;MagentoCatalogModelProduct&#39;)-&gt;load($productId);\n$productName = $product-&gt;getName();\n\u003C\u002Fpre\u003E\u003Cp\u003E\u003Cbr\u003E\u003C\u002Fp\u003E\u003Cp\u003EHere, \u003Ccode\u003E$productId\u003C\u002Fcode\u003E is the ID of the product for which you want to get the name.\u003C\u002Fp\u003E\u003Cp\u003E\u003Cbr\u003E\u003C\u002Fp\u003E\u003Cp\u003EKeep in mind that the above code uses the object manager, which is considered an anti-pattern in Magento 2. It is recommended to use dependency injection instead of the object manager to create an instance of a class.\u003C\u002Fp\u003E\u003Cp\u003E\u003Cbr\u003E\u003C\u002Fp\u003E\u003Cp\u003EFor example:\u003C\u002Fp\u003E\u003Cpre class=\"code-block ql-syntax\" id=\"code-xuf85cq\" language=\"php\"\u003Euse MagentoCatalogApiProductRepositoryInterface;\n\n...\n\npublic function __construct(\n    ProductRepositoryInterface $productRepository\n) {\n    $this-&gt;productRepository = $productRepository;\n}\n\n...\n\n$product = $this-&gt;productRepository-&gt;getById($productId);\n$productName = $product-&gt;getName();\n\u003C\u002Fpre\u003E\u003Cp\u003E\u003Cbr\u003E\u003C\u002Fp\u003E",formatted_message:"\u003Cp\u003E\u003Cspan class=\"mention\"\u003E\u003Cspan\u003E\u003Cspan\u003E\u003Cspan class=\"mention\"\u003E\u003Cspan\u003E\u003Cspan\u003E\u003Cspan class=\"ql-mention-denotation-char\"\u003E@\u003C\u002Fspan\u003Edomenico\u003C\u002Fspan\u003E\u003C\u002Fspan\u003E\u003C\u002Fspan\u003E \u003C\u002Fspan\u003E \u003C\u002Fspan\u003E\u003C\u002Fspan\u003E\u003C\u002Fp\u003E\u003Cp\u003EIn Magento 2, you can get the product name by using the following code:\u003C\u002Fp\u003E\u003Cdiv style=\"color:#f8f8f2;background-color:#272822;\"\u003E\n\u003Ctable style=\"border-spacing:0;padding:0;margin:0;border:0;\"\u003E\u003Ctbody\u003E\u003Ctr\u003E\u003Ctd style=\"vertical-align:top;padding:0;margin:0;border:0;\"\u003E\n\u003Cpre tabindex=\"0\" style=\"color:#f8f8f2;background-color:#272822;\"\u003E\u003Cspan style=\"white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f\"\u003E1\n\u003C\u002Fspan\u003E\u003Cspan style=\"white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f\"\u003E2\n\u003C\u002Fspan\u003E\u003Cspan style=\"white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f\"\u003E3\n\u003C\u002Fspan\u003E\u003C\u002Fpre\u003E\u003C\u002Ftd\u003E\n\u003Ctd style=\"vertical-align:top;padding:0;margin:0;border:0;;width:100%\"\u003E\n\u003Cpre tabindex=\"0\" style=\"color:#f8f8f2;background-color:#272822;\"\u003E$objectManager \u003Cspan style=\"color:#f92672\"\u003E=\u003C\u002Fspan\u003E \u003Cspan style=\"color:#a6e22e\"\u003EMagentoFrameworkAppObjectManager\u003C\u002Fspan\u003E\u003Cspan style=\"color:#f92672\"\u003E::\u003C\u002Fspan\u003E\u003Cspan style=\"color:#a6e22e\"\u003EgetInstance\u003C\u002Fspan\u003E();\n$product \u003Cspan style=\"color:#f92672\"\u003E=\u003C\u002Fspan\u003E $objectManager\u003Cspan style=\"color:#f92672\"\u003E-&gt;\u003C\u002Fspan\u003E\u003Cspan style=\"color:#a6e22e\"\u003Eget\u003C\u002Fspan\u003E(\u003Cspan style=\"color:#e6db74\"\u003E&#39;MagentoCatalogModelProduct&#39;\u003C\u002Fspan\u003E)\u003Cspan style=\"color:#f92672\"\u003E-&gt;\u003C\u002Fspan\u003E\u003Cspan style=\"color:#a6e22e\"\u003Eload\u003C\u002Fspan\u003E($productId);\n$productName \u003Cspan style=\"color:#f92672\"\u003E=\u003C\u002Fspan\u003E $product\u003Cspan style=\"color:#f92672\"\u003E-&gt;\u003C\u002Fspan\u003E\u003Cspan style=\"color:#a6e22e\"\u003EgetName\u003C\u002Fspan\u003E();\n\u003C\u002Fpre\u003E\u003C\u002Ftd\u003E\u003C\u002Ftr\u003E\u003C\u002Ftbody\u003E\u003C\u002Ftable\u003E\n\u003C\u002Fdiv\u003E\n\u003Cp\u003E\u003Cbr\u002F\u003E\u003C\u002Fp\u003E\u003Cp\u003EHere, \u003Ccode\u003E$productId\u003C\u002Fcode\u003E is the ID of the product for which you want to get the name.\u003C\u002Fp\u003E\u003Cp\u003E\u003Cbr\u002F\u003E\u003C\u002Fp\u003E\u003Cp\u003EKeep in mind that the above code uses the object manager, which is considered an anti-pattern in Magento 2. It is recommended to use dependency injection instead of the object manager to create an instance of a class.\u003C\u002Fp\u003E\u003Cp\u003E\u003Cbr\u002F\u003E\u003C\u002Fp\u003E\u003Cp\u003EFor example:\u003C\u002Fp\u003E\u003Cdiv style=\"color:#f8f8f2;background-color:#272822;\"\u003E\n\u003Ctable style=\"border-spacing:0;padding:0;margin:0;border:0;\"\u003E\u003Ctbody\u003E\u003Ctr\u003E\u003Ctd style=\"vertical-align:top;padding:0;margin:0;border:0;\"\u003E\n\u003Cpre tabindex=\"0\" style=\"color:#f8f8f2;background-color:#272822;\"\u003E\u003Cspan style=\"white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f\"\u003E 1\n\u003C\u002Fspan\u003E\u003Cspan style=\"white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f\"\u003E 2\n\u003C\u002Fspan\u003E\u003Cspan style=\"white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f\"\u003E 3\n\u003C\u002Fspan\u003E\u003Cspan style=\"white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f\"\u003E 4\n\u003C\u002Fspan\u003E\u003Cspan style=\"white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f\"\u003E 5\n\u003C\u002Fspan\u003E\u003Cspan style=\"white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f\"\u003E 6\n\u003C\u002Fspan\u003E\u003Cspan style=\"white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f\"\u003E 7\n\u003C\u002Fspan\u003E\u003Cspan style=\"white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f\"\u003E 8\n\u003C\u002Fspan\u003E\u003Cspan style=\"white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f\"\u003E 9\n\u003C\u002Fspan\u003E\u003Cspan style=\"white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f\"\u003E10\n\u003C\u002Fspan\u003E\u003Cspan style=\"white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f\"\u003E11\n\u003C\u002Fspan\u003E\u003Cspan style=\"white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f\"\u003E12\n\u003C\u002Fspan\u003E\u003Cspan style=\"white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f\"\u003E13\n\u003C\u002Fspan\u003E\u003Cspan style=\"white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f\"\u003E14\n\u003C\u002Fspan\u003E\u003C\u002Fpre\u003E\u003C\u002Ftd\u003E\n\u003Ctd style=\"vertical-align:top;padding:0;margin:0;border:0;;width:100%\"\u003E\n\u003Cpre tabindex=\"0\" style=\"color:#f8f8f2;background-color:#272822;\"\u003E\u003Cspan style=\"color:#66d9ef\"\u003Euse\u003C\u002Fspan\u003E \u003Cspan style=\"color:#a6e22e\"\u003EMagentoCatalogApiProductRepositoryInterface\u003C\u002Fspan\u003E;\n\n\u003Cspan style=\"color:#f92672\"\u003E...\u003C\u002Fspan\u003E\n\n\u003Cspan style=\"color:#66d9ef\"\u003Epublic\u003C\u002Fspan\u003E \u003Cspan style=\"color:#66d9ef\"\u003Efunction\u003C\u002Fspan\u003E __construct(\n    \u003Cspan style=\"color:#a6e22e\"\u003EProductRepositoryInterface\u003C\u002Fspan\u003E $productRepository\n) {\n    $this\u003Cspan style=\"color:#f92672\"\u003E-&gt;\u003C\u002Fspan\u003E\u003Cspan style=\"color:#a6e22e\"\u003EproductRepository\u003C\u002Fspan\u003E \u003Cspan style=\"color:#f92672\"\u003E=\u003C\u002Fspan\u003E $productRepository;\n}\n\n\u003Cspan style=\"color:#f92672\"\u003E...\u003C\u002Fspan\u003E\n\n$product \u003Cspan style=\"color:#f92672\"\u003E=\u003C\u002Fspan\u003E $this\u003Cspan style=\"color:#f92672\"\u003E-&gt;\u003C\u002Fspan\u003E\u003Cspan style=\"color:#a6e22e\"\u003EproductRepository\u003C\u002Fspan\u003E\u003Cspan style=\"color:#f92672\"\u003E-&gt;\u003C\u002Fspan\u003E\u003Cspan style=\"color:#a6e22e\"\u003EgetById\u003C\u002Fspan\u003E($productId);\n$productName \u003Cspan style=\"color:#f92672\"\u003E=\u003C\u002Fspan\u003E $product\u003Cspan style=\"color:#f92672\"\u003E-&gt;\u003C\u002Fspan\u003E\u003Cspan style=\"color:#a6e22e\"\u003EgetName\u003C\u002Fspan\u003E();\n\u003C\u002Fpre\u003E\u003C\u002Ftd\u003E\u003C\u002Ftr\u003E\u003C\u002Ftbody\u003E\u003C\u002Ftable\u003E\n\u003C\u002Fdiv\u003E\n\u003Cp\u003E\u003Cbr\u002F\u003E\u003C\u002Fp\u003E",is_moderated:c,likes:f,dislikes:a,thread_title:i,thread_slug:T,username:"aniya.jaskolski",user_avatar:"avatar\u002Faniya.jaskolski\u002F445117988.jpg",user_active:f,role:g,role_logo:b,created:"2023-01-01T18:34:46Z"},{id:170891,message:"\u003Cp\u003E\u003Cspan class=\"mention\"\u003E\u003Cspan\u003E\u003Cspan\u003E\u003Cspan class=\"mention\"\u003E\u003Cspan\u003E\u003Cspan\u003E\u003Cspan class=\"ql-mention-denotation-char\"\u003E@\u003C\u002Fspan\u003Edomenico\u003C\u002Fspan\u003E\u003C\u002Fspan\u003E\u003C\u002Fspan\u003E \u003C\u002Fspan\u003E \u003C\u002Fspan\u003E\u003C\u002Fspan\u003E\u003C\u002Fp\u003E\u003Cp\u003ETo get the product name in Magento 2, you can use the below code snippet:\u003C\u002Fp\u003E\u003Col\u003E\u003Cli\u003EIn a .phtml file:\ncreate(&#39;MagentoCatalogModelProduct&#39;)-&gt;load($productId);\necho $product-&gt;getName();\n?&gt;\u003C\u002Fli\u003E\u003Cli\u003EUsing dependency injection in a custom block class:\nproductFactory = $productFactory;\nparent::__construct($context, $data);\n}\npublic function getProduct()\n{\n$productId = 1; \u002F\u002F Replace 1 with your product ID\nreturn $this-&gt;productFactory-&gt;create()-&gt;load($productId);\n}\n}\nIn your .phtml file, you can call the getProduct method to get the product object and then retrieve the name:\ngetProduct();\necho $product-&gt;getName();\n?&gt;\u003C\u002Fli\u003E\u003C\u002Fol\u003E\u003Cp\u003E\u003Cbr\u003E\u003C\u002Fp\u003E\u003Cp\u003ENote: In general, it is preferable to use dependency injection instead of directly accessing the object manager in Magento 2.\u003C\u002Fp\u003E",formatted_message:"\u003Cp\u003E\u003Cspan class=\"mention\"\u003E\u003Cspan\u003E\u003Cspan\u003E\u003Cspan class=\"mention\"\u003E\u003Cspan\u003E\u003Cspan\u003E\u003Cspan class=\"ql-mention-denotation-char\"\u003E@\u003C\u002Fspan\u003Edomenico\u003C\u002Fspan\u003E\u003C\u002Fspan\u003E\u003C\u002Fspan\u003E \u003C\u002Fspan\u003E \u003C\u002Fspan\u003E\u003C\u002Fspan\u003E\u003C\u002Fp\u003E\u003Cp\u003ETo get the product name in Magento 2, you can use the below code snippet:\u003C\u002Fp\u003E\u003Col\u003E\u003Cli\u003EIn a .phtml file:\ncreate(&#39;MagentoCatalogModelProduct&#39;)-&gt;load($productId);\necho $product-&gt;getName();\n?&gt;\u003C\u002Fli\u003E\u003Cli\u003EUsing dependency injection in a custom block class:\nproductFactory = $productFactory;\nparent::__construct($context, $data);\n}\npublic function getProduct()\n{\n$productId = 1; \u002F\u002F Replace 1 with your product ID\nreturn $this-&gt;productFactory-&gt;create()-&gt;load($productId);\n}\n}\nIn your .phtml file, you can call the getProduct method to get the product object and then retrieve the name:\ngetProduct();\necho $product-&gt;getName();\n?&gt;\u003C\u002Fli\u003E\u003C\u002Fol\u003E\u003Cp\u003E\u003Cbr\u002F\u003E\u003C\u002Fp\u003E\u003Cp\u003ENote: In general, it is preferable to use dependency injection instead of directly accessing the object manager in Magento 2.\u003C\u002Fp\u003E",is_moderated:c,likes:a,dislikes:a,thread_title:i,thread_slug:T,username:"muriel.schmidt",user_avatar:"avatar\u002Fmuriel.schmidt\u002F1051.jpg",user_active:f,role:g,role_logo:b,created:"2023-07-06T22:51:35Z"}]}],fetch:{},error:e,state:{loading:a,settings:{id:9222,name:U,domain:"forum.phparea.com",port:80,plan:f,plan_name:"free",footer_code:b,robots_txt:"User-agent: *\nDisallow: \u002Fsearch\nDisallow: \u002Fadmin\nDisallow: \u002Fprofile\nDisallow: \u002Flogin\nDisallow: \u002Fregister\n\nSitemap: https:\u002F\u002Fforum.phparea.com\u002Fsitemap.xml",locale:"en",add_source:a,allow_likes:f,add_watermark:f,add_watermark_position:3,hash:"2fe5b8c0-2cde-4171-9f29-c802ff745139",default_role:an,allow_hash_tags:a,add_source_text:b,scrollable_pagination:f,meta_title:U,blog_active:d,favicon_png:"\u002Ffavicon.png",favicon_ico:b,custom_css:".forum-text.ql-viewer div{\n    border-radius: 5px;\n}\n\n.amzn-native-container {\n    display: block !important;\n    margin: 0 auto !important;\n}",meta_description:ao,description:ao,logo:"logo\u002Fphp2.png",is_related_thread:f,related_thread:6,notify_on_moderation:c,activation:"email"},layout:{id:9343,is_dark:a,name:ad,background_full:d,code_theme:"monokai",page_transition:"fadeRight",background:b,background_color:b,text_color:b,text_font_family:"Roboto",primary_color:k,secondary_color:"#424242",accent_color:k,info_color:k,success_color:k,error_color:k,warning_color:k},social_providers:{google:c,facebook:c,github:c},menus:[],showAd:d,darkMode:d,isFooterVisible:d,cdnUrl:"https:\u002F\u002Fforum-static.fra1.cdn.digitaloceanspaces.com",metaOg:{title:i,url:"https:\u002F\u002Fforum.phparea.com\u002Fthread\u002Fhow-to-get-product-name-in-magento-2",type:b,image:b,description:i,site_name:U},itemsPerPage:15,ad:[{id:23,name:"Own domain footer",css_selector:b,position:am,one_time:d,show_every:a,code:"\u003Cdiv class=\"flex\"\u003E\n\u003Ca href=\"https:\u002F\u002Fgosrc.cc\u002Fgo\u002FoJqr0c6SR\" target=\"_blank\"\u003E\u003Cimg src=\"https:\u002F\u002Fblogweb-static.fra1.cdn.digitaloceanspaces.com\u002Fpromo\u002Fbanner.png\" style=\"max-height:200px; max-width:100%;\" \u002F\u003E\u003C\u002Fa\u003E\n\u003Cdiv\u003E",active:c,free:c},{id:704,name:"between posts",css_selector:b,position:7,one_time:c,show_every:4,code:"\u003Cdiv class=\"d-flex justify-center\"\u003E\n\u003Ca target=\"_blank\" href=\"https:\u002F\u002Fwww.digitalocean.com\u002F?refcode=b66c8b09b611&utm_campaign=Referral_Invite&utm_medium=Referral_Program&utm_source=badge\"\u003E\u003Cimg src=\"https:\u002F\u002Fweb-platforms.sfo2.cdn.digitaloceanspaces.com\u002FWWW\u002FBadge%201.svg\" alt=\"DigitalOcean Referral Badge\" \u002F\u003E\u003C\u002Fa\u003E\u003C\u002Fdiv\u003E",active:c,free:d},{id:705,name:"posts",css_selector:b,position:8,one_time:c,show_every:a,code:"\u003Ciframe src=\"https:\u002F\u002Fmangools.com\u002Faffil-banners\u002Fsiteprofiler-ad.html?title=default&theme=default&size=930x180#a62ac14e5feebf87c75cc5019\" width=\"300\" height=\"250\" style=\"border: 0;\"\u003E\u003C\u002Fiframe\u003E",active:c,free:d},{id:706,name:"left",css_selector:b,position:11,one_time:d,show_every:a,code:"\u003Ca target=\"_blank\" href=\"https:\u002F\u002Fwww.digitalocean.com\u002F?refcode=b66c8b09b611&utm_campaign=Referral_Invite&utm_medium=Referral_Program&utm_source=badge\"\u003E\u003Cimg src=\"https:\u002F\u002Fweb-platforms.sfo2.cdn.digitaloceanspaces.com\u002FWWW\u002FBadge%201.svg\" alt=\"DigitalOcean Referral Badge\" \u002F\u003E\u003C\u002Fa\u003E",active:c,free:d}],profileStats:{fetched:d,personalMessages:a},stats:{fetched:d,threads:a,posts:a},breadcrumbs:[{text:V,disabled:d,href:W},{text:j,disabled:d,href:"\u002Fforum\u002Fphp-cms"},{text:i,disabled:c}],categories:[ap,aq,at,aw,ax,ay,az,aA,aC],categoriesWithChildren:[ap,aq,at,aw,ax,ay,az,aA,aC],roles:[{code:an,logo:b,name:g},{code:"ROLE_MODERATOR",logo:b,name:aE},{code:"ROLE_ADMIN",logo:b,name:"Administrator"}],i18n:{routeParams:{}},auth:{user:e,loggedIn:d,strategy:"local"}},serverRendered:c,routePath:"\u002Fthread\u002Fhow-to-get-product-name-in-magento-2",config:{_app:{basePath:W,assetsPath:W,cdnURL:"https:\u002F\u002Fpub-1e27250373774d6ca37239bbf5810b5c.r2.dev\u002Fassets\u002F0.3\u002F"}},__i18n:{langs:{en:{common:{common_badge_blog:"blog",common_badge_post:"forum",common_badge_page:"page",answers:"no answers | 1 answer | {count} answers",likes:"no likes | 1 like | {count} likes",dislikes:"no dislikes | 1 dislike | {count} dislikes",show_more:aF,show_less:"Show Less",go_back:"Go Back",go_home_page:"Go Home Page",max_tag_reached:"Max Count of Tags Reached",in_category:"in category: ",our_privacy:"See our Privacy Policy",count_best_answers:aG,search_ask_question:"Do you want to create a thread?",check_internet_connection:"You are offline! Check your internet connection.",by:"by",cookie_text:"This site uses cookies to ensure you get the best experience. By clicking \"Got it\" or continuing to browse the website, you are agreeing to our use of cookies.",got_it:"Got it",signature:aH,author_marked_as_best:aI,no_transition:"No Transition",mail_services:"Mail Services",free_files:"The current plan has a limit 10 files",user_not_active:"Deleted user",confirm_email_text:"We just sent an email to you with the confirmation code. Please put the confirmation code in field below.",main_top_ad:"Ad in all pages on the top",main_bottom_ad:"Ad in all pages on the bottom",blog_in_category_ad:"Ad in blog category",blog_post_top_ad:"Ad in blog post on the top",blog_post_bottom_ad:"Ad in blog post on the bottom",blog_in_post_ad:"Ad in blog post",forum_in_thread_ad:"Ad in forum thread",forum_in_post_ad:"Ad in forum post",sliding_ad:"Sliding Ad on all pages",page_ad:"Ad on the page",sidebar_under_menu:"Left sidebar under menu",site_is_not_ready:"You site is not ready yet",thanks_choosing_us:"Thank you for giving us the opportunity to serve you",register_site_first:"You need register your site first at",create_forum:"create a forum",create_forum_free:"free forum",create_forum_free_text:aJ,create_qa_free_text:aJ,create_qa_free:"Questions & Answers platform",support_text:"support forum",post_subject:aK,how_to_create_text:"If you have any question about our platform - you can easily ask us. We are always ready to help you by contact form or by our",subcategory:"Subcategories",category:aL,main_page:"Main Page",banned:"Banned User",no_banned:"Not Banned User",new_message:"New",not_read:"Not Read",spam:"Spam",trusted:aM,no_trusted:"Common User",security_questions:"Registration Questions",nice_to_see_you:"Nice to see you again",records_not_found:"No records found",not_found:"There were no results for your search.",member_from:"Member from",last_seen:"Last seen",not_authorized:"Sign in to your account",account:"Account",last_message:" Last Reply ",from:" from ",thanks_confirming:"Thank you for using our service. Account successfully confirmed!",thanks_confirming_details:"You can use your credentials to login into system",mail_settings_valid:"Congratulations! Mail Settings verified successfully and ready to use",terms:"Terms & Conditions",privacy:aN,accept_terms:"I Agree to the Terms and Conditions",need_accept_terms:"You must agree to the Terms and Conditions in order to register",copyright_text:"This Site is Created By",security_messages:"Secure messages",na:"N\u002FA",active:aO,no_active:"Inactive",attention:"Attention!",count_topics:aP,need_moderation:"Approve message",no_data:"No data",no_files:"No files",no_records:"No records",no_messages:"No messages",count_messages:y,menu:l,search:z,action:"Action",pin_topic:"Pin topic",unpin_topic:"Unpin topic",existing_client:"Existing user? Sign In",close_topic:"Close topic",open_topic:"Open topic",rows_per_page:"Rows per page",top_menu:"Top menu",bottom_menu:"Bottom menu",waiting_approval:"Waiting approval",second:"Second",minute:"Minute",hour:"Hour",message:y,messages:y,topic_closed:"Topic closed",important_topic:"Important topic",threads:aQ},animation:{default_fade:"Default Fade",fade_up:"Fade Up",fade_right:"Fade Right",fade_down:"Fade Down",fade_left:"Fade Left",rotate:"Rotate",rotate_down_left:"Rotate Down Left",rotate_down_right:"Rotate Down Right",rotate_up_left:"Rotate Up Left",rotate_up_right:"Rotate Up Right",slide_down:"Slide Down",slide_left:"Slide Left",slide_right:"Slide Right",slide_up:"Slide Up",flip:"Flip",flip_x:"Flip X",flip_y:"Flip Y",zoom:"Zoom",zoom_down:"Zoom Down",zoom_left:"Zoom Left",zoom_right:"Zoom Right",zoom_up:"Zoom Up",light_speed:"Light Speed",bounce:"Bounce",bounce_down:"Bounce Down",bounce_left:"Bounce Left",bounce_right:"Bounce Right",bounce_up:"Bounce Up"},tabs:{delete_forum:m,translation_settings:aR,inbox_pm:"Inbox",sent_pm:"Sent",moderator_main:"Statistic",moderator_threads:aS,role_settings:A,hash_tags_settings:n,moderator_users:B,export_settings:o,moderator_posts:C,blog_settings:D,privacy_settings:E,badge_settings:F,ad_settings:G,file_settings:p,my_profile_stat:"My Statistics",main_settings:"General Settings",mail_settings:H,layout_settings:I,forum_settings:"Categories",member_settings:aT,social_providers:J,page_settings:K,menu_settings:"Menu Settings",social_settings:L,security_settings:M,profile:aU,messages:y,redirect_settings:X,topics:aP},modals:{delete_forum:"I understand that the forum and all data will be permanently removed.",delete_tag:"Are you sure you want to delete this hash tag?",delete_tag_confirm:"Please confirm that you want to delete this hash tag",delete_badge:"Are you sure you want to delete this badge?",delete_badge_confirm:"Please confirm that you want to delete this badge",new_pm:"Compose Message",delete_role:"Are you sure you want to delete this role?",delete_role_confirm:"Please confirm that you want to delete this role",delete_user:"Are you sure you want to delete this user?",delete_file:"Are you sure you want to delete this file?",delete_file_confirm:"Please confirm that you want to delete this file",delete_user_confirm:"Please confirm that you want to delete this user",delete_thread:"Are you sure you want to delete this thread?",delete_thread_confirm:"Please confirm that you want to delete this thread",delete_ad:"Are you sure you want to delete this Ad?",delete_ad_confirm:"Please confirm that you want to delete this Ad",delete_blog_content:"Are you sure you want to delete this post?",delete_blog_content_confirm:"Please confirm that you want to delete this post",delete_blog_category:aV,delete_blog_category_confirm:"Please confirm that you want to delete this category and related subcategories, posts.",delete_redirect:"Are you sure you want to delete this redirect?",delete_redirect_confirm:"Please confirm that you want to delete this redirect link.",delete_category:aV,delete_category_confirm:"Please confirm that you want to delete this category and related subcategories, threads, posts.",delete_menu:"Are you sure you want to delete this menu link?",delete_menu_confirm:"Please confirm that you want to delete this menu link.",delete_page:"Are you sure you want to delete this page?",delete_page_confirm:"Please confirm that you want to delete this page.",delete_message:"Are you sure you want to delete this message?",delete_message_confirm:"Please confirm that you want to delete this message.",delete_topic:"Are you sure you want to delete this topic?",delete_topic_confirm:"Please confirm that you want to delete this topic and related posts.",delete_all_topic_message:"Are you sure you want to delete all messages?",delete_all_topic_message_confirm:"Please confirm that you want to delete all messages",delete_all_topic_text:"Are you sure you want to delete all topics?",delete_all_topic_text_confirm:"Please confirm that you want to delete all topics"},errors:{page_not_found:"Page not found",other_error:"Error happened"},toasts:{voted:"Your vote is counted",email_sent:"Confirmation Code Sent to Email",logout:"You successfully logged out",category_created:"Category successfully created!",category_updated:"Category successfully updated!",ad_created:"Ad successfully created!",ad_updated:"Ad successfully updated!",menu_created:"Menu link successfully created!",menu_updated:"Menu link successfully updated!",page_created:"Page successfully created!",page_updated:"Page successfully updated!",register_successfully:"You have successfully registered",confirm_email:"Please confirm your email address",posts_waiting_approval:"Posts waiting approval:",users_waiting_approval:"Users waiting approval:",threads_waiting_approval:"Threads waiting approval:",favicon_updated:"Favicon successfully updated",background_updated:"Background successfully updated",select_logo:"Please select logo",select_favicon:"Please select favicon",logo_updated:"Logo successfully updated",logo_deleted:"Logo successfully deleted",profile_updated:"Profile successfully updated",avatar_updated:"Avatar successfully updated",select_avatar:"Please select image file",select_background:"Please select background image file",auth_success:"Logged in successfully",settings_success:"Settings successfully updated",terms_success:"Terms successfully updated",message_send:"Message has been sent",created:Y,updated:"Updated",password_changed:"Password changed successfully",record_created:Y,deleted:"Deleted",success:"Success",error:"Error happened."},titles:{upgrade_pro:Z,admin_delete:m,translation_settings:aW,hash_tag_settings:n,badge_settings:F,roles:A,search:z,social_providers:J,confirm_account:aX,how_to_create:"How To Create Your Own Free Forum",category_settings:aY,edit_member:_,export_settings:o,file_settings:p,blog_settings:D,ad_settings:G,blog_content:N,blog_category:q,blog:O,my_pm:r,view_pm:$,members:aZ,redirects:X,menu:l,pages:K,layout_settings:I,social_settings:L,security_settings:M,terms_settings:E,mail_settings:H,admin_index:P,moderator_index:Q,moderator_threads:a_,moderator_users:B,moderator_posts:C,change_password:s,view_profile:"user profile",my_profile:aa,register:a$,login:h,restore_password:t,contact_us:R},descriptions:{upgrade_pro:Z,admin_delete:m,translation_settings:aW,hash_tag_settings:n,badge_settings:F,roles:A,social_providers:J,confirm_account:aX,how_to_create:"How To Create Your Own Free Forum. If you need a free modern forum - you can create it right now.",category_settings:aY,export_settings:o,edit_member:_,moderator_index:Q,file_settings:p,moderator_threads:a_,moderator_users:B,moderator_posts:C,ad_settings:G,blog_settings:D,my_pm:r,view_pm:$,blog:O,blog_category:q,blog_content:N,members:aZ,redirects:X,menu:l,terms_settings:E,layout_settings:I,pages:K,social_settings:L,security_settings:M,admin_index:P,mail_settings:H,change_password:s,view_profile:"user profile. Contacts, messages, topics.",my_profile:aa,register:a$,login:h,restore_password:t,contact_us:"You can always send us message and we always ready to help. "},mail:{other:"Other",gmail:"Gmail",yandex:"Yandex",yahoo:"Yahoo",mail:"Mail.ru",rambler:"Rambler",bing:"Bing",outlook:"Outlook",aol:"AOL"},activations:{email:"Email confirmation required",manually:"Manually by admin\u002Fmoderator",automatically:"Automatically, after registration"},toc:{disabled:"No Active",top:"Top",bottom:"Bottom"},export:{yes:"Yes",no:"No",blog_category:q,blog:"Blog Posts",forum:"Forum",profile:"Profiles"},watermark:{center:"Center",top_left:"Top-Left Corner",top_right:"Top-Right Corner",bottom_left:"Bottom-Left Corner",bottom_right:"Bottom-Right Corner"},conditions:{threads:aQ,posts:"Posts",best_answers:aG},forms:{default_role:"Default role for new users",hash_tag:"Hash Tag",hash_tags:"Tags (not required)",meta_title:"Meta Title",meta_description:"Meta Description",value:"Value",condition:"Condition",allow_hash_tags:"Enable Hash Tags",access_pm:r,create_post:"Create Post",edit_own_post:"Edit Own Post",edit_any_post:"Edit Any Post",moderate_data:"Moderate Posts\u002FThreads etc...",access_to_admin_tool:"Access to Admin Tool",register_limit:"Registration limit",permissions:"Permissions",created:Y,scrollable_pagination:"Scrollable pagination",is_public_category:"Access to everyone",roles:"Only roles have access",add_source:"Add Source Whenever Copy Text?",allow_likes:"Allow to user likes posts and threads?",add_watermark:"Add Watermark to Images?",add_watermark_position:"Watermark Position",messages_before_auto_approved:"How many posts approve manually for the new users?",add_source_text:"Text:",move_to_category:"Move Threads and Messages to Category",blog_move_to_category:"Move Content to Category",default_add_source_text:"Read more at:",category:"Category:",code_theme:"Code Editor Theme:",user_link_type:"Type:",user_link:"Link:",is_profile_public:"Make Profile Public:",add_social_link:"Add Social Link",confirm_your_email:"Confirm your email",background_full:"Full Screen Image",notifications:"Notifications",to_username:"To",page_transition:"Page Transition",subject:"Subject",signature:aH,no_ad:"No Ad in this post",max_length:"Max XX characters",custom_css:"Custom CSS",security_question_question:ba,is_related_post:"Enable Related Posts",related_post:"Count of Related Posts",is_related_thread:"Enable Related Threads",related_thread:"Count of Related Threads",from_name:"From:",to_name:"To:",role:bb,created_date:"Created at",status:"Status",export_data:"export data",export_data_deleted:"Unfortunately export deleted because we store it just in 3 days. If you need fresh data please create a new request.",export_data_deleted_short:"Unfortunately export deleted",export_settings:"Export Settings",security_question_answer:"Answer","messages_before_au to_approved":"How many approved messages for new clients",mark_uncertain_messages:"Moderate manually uncertain messages",thread_limit:"Thread limit",directory_name:"Directory name",nofollow:"Add for links rel=nofollow",blog_social_sizes:"Icon Size",notify_on_moderation:"Notify me about messages\u002Fthreads on moderation",directory:"Directory",summary:"Summary",badge_name:"Badge Name",badge_description:bc,badge_icon:"Icon",banned:"Banned",robots_txt:"Robots.txt",toc:aK,one_time:"Show one time",show_every:"Show every",show_after:"Show after",css_selector:"CSS selector",code:"Code",file:"File",question:ba,answer:"You answer",thread_limit_type:"Thread limit by",register_limit_type:"Register limit",trusted:aM,edit_profile:bd,post_limit:"Post limit",post_limit_type:"Post limit by",category_name:"Category name",category_description:"Category Description",blog_category:aL,text_font_family:"Font Family",add_in_menu:"Add In Menu",avatar:"Avatar",template:"Template",old_url:"Old URL",new_url:"New URL",image:be,is_dark:"Dark Mode",logo:"Logo",topic_name:bf,open_new_tab:"Open in new tab",no_index:"Noindex page by google, bing, yahoo etc...",text_link:"Link text",select_page:"Select page",select_manually:"Manually",parent_category:"Parent Category",link:"Link",name:ab,encryption:"Encryption",host:"Host",port:"Port",user:bg,page:"Page",position:"Position",type_background:"Background",no_background:"None",background_color:"Color",background_image:be,activation:"Activate new members",password:"Password",new_password:"New password",confirm_password:"Confirm password",username:bg,firstname:"First name",favicon:"Favicon",favicon_png:"Favicon PNG",forum_name:ab,active:aO,page_name:ab,forum_description:bc,footer_code:"Footer custom code (ex. google analytics code)",lastname:"Last name",update:bh,email:"Email",company:"Company",message:"Message",text:"Text"},social_size:{small:"Small",medium:"Medium",large:"Large"},buttons:{upgrade_pro:Z,delete_forum:m,buy_now:"Get Started",make_default_role:"Set role as the default for new users",edit_hash_tag:"Edit Hash Tag",new_hash_tag:"Add Hash Tag",new_badge:"Add Badge",edit_badge:"Edit Badge",add_role:bi,edit_role_link:"Edit Role",add_role_link:bi,login_google:h,login_facebook:h,login_github:h,cancel:"Cancel",delete_and_keep_messages:"Delete (keep messages\u002Fthreads)",login_google_tooltip:"Login with Google",login_facebook_tooltip:"Login with Facebook",login_github_tooltip:"Login with Github",moderate:aE,best_answer:aI,answer:bj,my_profile:aU,ask_question:"Ask Question",add_redirect:"New Redirect",edit_redirect:"Edit Redirect",search_more:"Search More",resend_code:"Resend Code",confirm_email:"Confirm Email",show_more:aF,add_ad:bk,edit_ad:"Edit Ad",new_ad:bk,new_file:"New File",deactivate:"Deactivate",activate:"Activate",unbanned:"Unbanned",bann:bl,new_pm:"Compose",spam:"Mark As Spam",blog_social_share:"Social Share Buttons",new_export:bm,export_data:bm,new_directory:"New Directory",upload_file:"Upload File",upload_directory:"Create folder",edit_category:bn,edit_thread:"Edit Thread",add_category:bo,add_menu_link:bp,blog_category:q,blog_content:N,edit_menu_link:"Edit link",new_menu:bp,validate_mail_settings:"Validate",new_page:"New Page",read:"Read More",new_blog_category:bo,edit_blog_category:bn,new_blog_content:"New Post",edit_blog_content:"Edit Post",edit_page:"Edit Page",upload_avatar:"Upload avatar",upload_logo:"Upload Logo",delete_logo:"Remove Logo",upload_favicon:"Upload Favicon",upload_favicon_png:"Upload Favicon PNG",topic_name:bf,contact_us:R,home:V,upload_background:"Upload background image",ban:bl,unban:"Unban",delete_all_topic:"Delete all topics",delete_all_messages:"Delete all messages",admin:"Admin Dashboard",profile:bq,signin:"Sign In",register:ac,change_password:s,role:bb,logout:"Logout",reply:"Reply to this topic",reply_pm:bj,edit_post:"Edit post",new_post:"Add message",save:"Save",edit:"Edit",new_message:"New message",restore_password:t,remove:"Remove",login:h,close:"Close",add:"Add",update:bh,delete:"Delete",reset:"Reset Color Schema",send:"Send",clear:"Clear"},headers:{admin_hash_tags:n,admin_badges:F,roles:A,search:z,related_post:"Related Posts",related_thread:"Related Threads",edit_profile:bd,admin_members:"Users",export_settings:o,select_export:"Please select export settings",posts_on_moderation:"Posts on moderation",threads_on_moderation:"Threads on moderation",users_on_moderation:"Users on moderation",moderator_home:Q,my_pm:r,moderator_index:"Statistics",admin_home:P,blog:O,change_password:s,admin_redirects:"List of Redirect",admin_ad:"List of Ads",file_settings:p,view_profile:"User profile",color_settings:"Theme Color Settings",primary_color:"Primary Color",secondary_color:"Secondary Color",accent_color:"Accent Color",info_color:"Info Color",success_color:"Success Color",error_color:"Error Color",warning_color:"Warning Color",my_profile:aa,register:ac,menu:l,follow_us:"Follow us",about_us:"About us",login:h,restore_password:t,contact_us:R},breadcrumbs:{pro:"PRO status",admin_delete:m,translation:aR,privacy:aN,hash_tag_settings:n,badge_settings:"Badge",menu_home:l,social_providers:J,search:z,export_settings:o,confirm_account:"Account confirmation",blog_home:O,pm:r,view_pm:$,blog_content:N,blog_settings:D,ad_settings:G,file_settings:p,privacy_settings:E,forum_settings:"Category Settings",mail_settings:H,layout_settings:I,redirects:"Redirects",blog_categories:q,edit_member:_,members:aT,pages:K,social_settings:L,security_settings:M,admin_index:P,moderator_threads:aS,moderator_posts:C,moderator_users:B,moderator_index:Q,change_password:s,home:V,view_profile:"User Profile",my_profile:bq,login:h,register:ac,contact_us:R,restore_password:t},plan:{success:"Payment Successful!",success_detail:"Your payment was successfully processed. Thank you for your purchase!",failed:"Payment Failed",failed_detail:"We're sorry, but your payment could not be processed.",failed_detail_line_2:"Please check your payment details and try again.",free:"Free",free_price:"$0\u002Fmo",free_description:"Great for starters",pro:"Pro",pro_price:"$9.99\u002Fmo",pro_description:"Most popular",enterprise:br,enterprise_price:br,custom_price:"Custom",feature:{unlimited_posts:"Unlimited Posts",unlimited_threads:"Unlimited Threads",unlimited_category:"Unlimited Category",unlimited_users:"Unlimited Users",ssl:"Free SSL",use_own_domain:"Use your own domain",spam_protection:"Spam Protection",ad_free:"AD Free",no_copyright:"No Copyright in the Footer",dedicated_server:"Dedicated Server"}}}}}}}(0,"",true,false,null,1,"Member","Login","How to get product name in Magento 2?","PHP CMS","#8190CC","Menu","Delete Forum","Hash Tags","Export","File Settings","Blog Category","Personal Messages","Change password","Restore password","PHP General","PHP Security","Third Party Scripts","Javascript","Messages","Search","Roles","Moderate Users","Moderate Posts","Blog Settings","Privacy Settings","Badges","Ad Settings","Mail Settings","Layout Settings","Social Logins","Pages","Social Settings","Security Settings","Blog Content","Blog","Admin dashboard","Moderator dashboard","Contact us",46401,"how-to-get-product-name-in-magento-2","PHP Developers Community","Home","\u002F","Redirect","Created","Upgrade to PRO","Edit User Details","View Message","My Profile","Name","Sign Up","qa","php-cms","How to get category name in Magento 2?","How to get current product category name in woocommerce?","How to get form key in Magento 2?","How to get media url in Magento 2?","How to get the current route name in Laravel?","darrion.kuhn","How to get only product list from woocommerce api?",2,"ROLE_CLIENT","PHP Software Developers Community to ask any related PHP programming questions.",{},{},"PHP Frameworks","PHP Frameworks like: Laravel, Symfony, Codeigniter, CakePHP etc...",{},"PHP Databases","PHP Databases: MySQL, Oracle, MongoDB, MSSQL, PostgreSQL etc...",{},{},{},{},{},"MySQL",{},"HTML & CSS","Moderator","Show More","Best Answers","Signature","Best Answer","Get Your Own","Table of Contents","Category","Trusted User","Privacy Policy","Active","Topics","Threads","Translation","Moderate Threads","Members","Profile","Are you sure you want to delete this category?","Translation Settings","Your account was successfully confirmed","Forum Category Settings","List Users","Moderate Thread","Register for the forum","Question","Role","Description","Edit Profile","Image","Title","Username","Update","Add Role","Reply","New Ad","Ban","Export Data","Edit Category","New Category","Add a new menu link","My profile","Enterprise"));</script><script src="https://pub-1e27250373774d6ca37239bbf5810b5c.r2.dev/assets/0.3/7b8ec9d.js" defer></script><script src="https://pub-1e27250373774d6ca37239bbf5810b5c.r2.dev/assets/0.3/25edc65.js" defer></script><script src="https://pub-1e27250373774d6ca37239bbf5810b5c.r2.dev/assets/0.3/863688a.js" defer></script><script src="https://pub-1e27250373774d6ca37239bbf5810b5c.r2.dev/assets/0.3/cb42003.js" defer></script>
  692.  </body>
  693. </html>
  694.  
Copyright © 2002-9 Sam Ruby, Mark Pilgrim, Joseph Walton, and Phil Ringnalda